From 25ed9aa97db2ceae428293788935cda25511e388 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 12 Oct 2025 05:53:52 +0000 Subject: [PATCH] ## Typescript SDK Changes Detected: * `plex-api.general.getServerInfo()`: `request` **Changed** **Breaking** :warning: * `plex-api.general.getSourceConnectionInformation()`: `request` **Changed** **Breaking** :warning: * `plex-api.general.getTransientToken()`: `request` **Changed** **Breaking** :warning: * `plex-api.events.getNotifications()`: `request` **Changed** **Breaking** :warning: * `plex-api.events.connectWebSocket()`: `request` **Changed** **Breaking** :warning: * `plex-api.preferences.setPreferences()`: `request` **Changed** **Breaking** :warning: * `plex-api.preferences.getPreference()`: `request` **Changed** **Breaking** :warning: * `plex-api.rate.setRating()`: `request` **Changed** **Breaking** :warning: * `plex-api.timeline.markPlayed()`: `request` **Changed** **Breaking** :warning: * `plex-api.timeline.report()`: `request` **Changed** **Breaking** :warning: * `plex-api.timeline.unscrobble()`: `request` **Changed** **Breaking** :warning: * `plex-api.activities.cancelActivity()`: `request` **Changed** **Breaking** :warning: * `plex-api.butler.stopTask()`: `request` **Changed** **Breaking** :warning: * `plex-api.butler.startTask()`: `request` **Changed** **Breaking** :warning: * `plex-api.downloadQueue.getDownloadQueue()`: `request` **Changed** **Breaking** :warning: * `plex-api.downloadQueue.addDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.downloadQueue.listDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.downloadQueue.getItemDecision()`: `request` **Changed** **Breaking** :warning: * `plex-api.downloadQueue.getDownloadQueueMedia()`: `request` **Changed** **Breaking** :warning: * `plex-api.downloadQueue.removeDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.downloadQueue.getDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.downloadQueue.restartProcessingDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.getAllHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.getContinueWatching()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.getHubItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.getPromotedHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.getMetadataHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.getPostplayHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.getRelatedHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.getSectionHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.resetSectionDefaults()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.listHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.createCustomHub()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.moveHub()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.deleteCustomHub()`: `request` **Changed** **Breaking** :warning: * `plex-api.hubs.updateHubVisibility()`: `request` **Changed** **Breaking** :warning: * `plex-api.search.searchHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.search.voiceSearchHubs()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getLibraryItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.ingestTransientItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getLibraryMatches()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.optimizeDatabase()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getRandomArtwork()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.addSection()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getSectionsPrefs()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.refreshSectionsMetadata()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getTags()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.deleteMetadataItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.editMetadataItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.detectAds()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getAllItemLeaves()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.analyzeMetadata()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.generateThumbs()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.detectCredits()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getExtras()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.addExtras()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getFile()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.startBifGeneration()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.detectIntros()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.createMarker()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.matchItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.listMatches()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.mergeItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.listSonicallySimilar()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.setItemPreferences()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.refreshItemsMetadata()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getRelatedItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.listSimilar()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.splitItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.addSubtitles()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getItemTree()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.unmatch()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.listTopUsers()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.detectVoiceActivity()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getAugmentationStatus()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.setStreamSelection()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getPerson()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.listPersonMedia()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.deleteLibrarySection()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getLibraryDetails()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.editSection()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.updateItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.startAnalysis()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.autocomplete()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getCollections()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getCommon()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.emptyTrash()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getSectionFilters()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getFirstCharacters()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.deleteIndexes()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.deleteIntros()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getSectionPreferences()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.setSectionPreferences()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.cancelRefresh()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.refreshSection()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getAvailableSorts()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getStreamLevels()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getStreamLoudness()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getChapterImage()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.setItemArtwork()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.updateItemArtwork()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.deleteMarker()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.editMarker()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.deleteMediaItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getPartIndex()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.deleteCollection()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getSectionImage()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.deleteStream()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getStream()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.setStreamOffset()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getItemArtwork()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getMediaPart()`: `request` **Changed** **Breaking** :warning: * `plex-api.library.getImageFromBif()`: `request` **Changed** **Breaking** :warning: * `plex-api.collections.createCollection()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.createDvr()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.deleteDvr()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.getDvr()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.deleteLineup()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.addLineup()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.setDvrPreferences()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.stopDvrReload()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.reloadGuide()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.tuneChannel()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.removeDeviceFromDvr()`: `request` **Changed** **Breaking** :warning: * `plex-api.dvRs.addDeviceToDvr()`: `request` **Changed** **Breaking** :warning: * `plex-api.epg.computeChannelMap()`: `request` **Changed** **Breaking** :warning: * `plex-api.epg.getChannels()`: `request` **Changed** **Breaking** :warning: * `plex-api.epg.getLineup()`: `request` **Changed** **Breaking** :warning: * `plex-api.epg.getLineupChannels()`: `request` **Changed** **Breaking** :warning: * `plex-api.epg.getCountriesLineups()`: `request` **Changed** **Breaking** :warning: * `plex-api.epg.getCountryRegions()`: `request` **Changed** **Breaking** :warning: * `plex-api.epg.listLineups()`: `request` **Changed** **Breaking** :warning: * `plex-api.liveTv.getLiveTvSession()`: `request` **Changed** **Breaking** :warning: * `plex-api.liveTv.getSessionPlaylistIndex()`: `request` **Changed** **Breaking** :warning: * `plex-api.liveTv.getSessionSegment()`: `request` **Changed** **Breaking** :warning: * `plex-api.log.writeMessage()`: `request` **Changed** **Breaking** :warning: * `plex-api.log.enablePapertrail()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.getAvailableGrabbers()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.addDevice()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.removeDevice()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.getDeviceDetails()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.modifyDevice()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.setChannelmap()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.getDevicesChannels()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.setDevicePreferences()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.stopScan()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.scan()`: `request` **Changed** **Breaking** :warning: * `plex-api.devices.getThumb()`: `request` **Changed** **Breaking** :warning: * `plex-api.provider.addProvider()`: `request` **Changed** **Breaking** :warning: * `plex-api.provider.deleteMediaProvider()`: `request` **Changed** **Breaking** :warning: * `plex-api.subscriptions.getAllSubscriptions()`: `request` **Changed** **Breaking** :warning: * `plex-api.subscriptions.createSubscription()`: `request` **Changed** **Breaking** :warning: * `plex-api.subscriptions.getTemplate()`: `request` **Changed** **Breaking** :warning: * `plex-api.subscriptions.cancelGrab()`: `request` **Changed** **Breaking** :warning: * `plex-api.subscriptions.deleteSubscription()`: `request` **Changed** **Breaking** :warning: * `plex-api.subscriptions.getSubscription()`: `request` **Changed** **Breaking** :warning: * `plex-api.subscriptions.editSubscriptionPreferences()`: `request` **Changed** **Breaking** :warning: * `plex-api.subscriptions.reorderSubscription()`: `request` **Changed** **Breaking** :warning: * `plex-api.transcoder.transcodeImage()`: `request` **Changed** **Breaking** :warning: * `plex-api.transcoder.makeDecision()`: `request` **Changed** **Breaking** :warning: * `plex-api.transcoder.triggerFallback()`: `request` **Changed** **Breaking** :warning: * `plex-api.transcoder.transcodeSubtitles()`: `request` **Changed** **Breaking** :warning: * `plex-api.transcoder.startTranscodeSession()`: `request` **Changed** **Breaking** :warning: * `plex-api.playlist.listPlaylists()`: `request` **Changed** **Breaking** :warning: * `plex-api.playlist.getPlaylist()`: `request` **Changed** **Breaking** :warning: * `plex-api.playlist.getPlaylistItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.createPlaylist()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.uploadPlaylist()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.deletePlaylist()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.updatePlaylist()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.getPlaylistGenerators()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.clearPlaylistItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.addPlaylistItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.deletePlaylistItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.getPlaylistGenerator()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.modifyPlaylistGenerator()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.getPlaylistGeneratorItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.movePlaylistItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryPlaylists.refreshPlaylist()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.createPlayQueue()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.getPlayQueue()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.addToPlayQueue()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.clearPlayQueue()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.resetPlayQueue()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.shuffle()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.unshuffle()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.deletePlayQueueItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.playQueue.movePlayQueueItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.ultraBlur.getColors()`: `request` **Changed** **Breaking** :warning: * `plex-api.ultraBlur.getImage()`: `request` **Changed** **Breaking** :warning: * `plex-api.status.listPlaybackHistory()`: `request` **Changed** **Breaking** :warning: * `plex-api.status.terminateSession()`: `request` **Changed** **Breaking** :warning: * `plex-api.status.deleteHistory()`: `request` **Changed** **Breaking** :warning: * `plex-api.status.getHistoryItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.updater.applyUpdates()`: `request` **Changed** **Breaking** :warning: * `plex-api.updater.checkUpdates()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getCollectionItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getMetadataItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getAlbums()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.listContent()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getAllLeaves()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getArts()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getCategories()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getCluster()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getSonicPath()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getFolders()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.listMoments()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getSonicallySimilar()`: `request` **Changed** **Breaking** :warning: * `plex-api.content.getCollectionImage()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryCollections.addCollectionItems()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryCollections.deleteCollectionItem()`: `request` **Changed** **Breaking** :warning: * `plex-api.libraryCollections.moveCollectionItem()`: `request` **Changed** **Breaking** :warning: --- .speakeasy/gen.lock | 439 +- .speakeasy/gen.yaml | 2 +- .speakeasy/tests.arazzo.yaml | 417 ++ .speakeasy/workflow.lock | 12 +- FUNCTIONS.md | 59 +- README.md | 207 +- RELEASES.md | 12 +- USAGE.md | 65 +- codeSamples.yaml | 4721 +++++++++-------- .../operations/addcollectionitemsglobals.md | 41 +- .../operations/addcollectionitemsrequest.md | 21 +- .../sdk/models/operations/adddeviceglobals.md | 41 +- .../sdk/models/operations/adddevicerequest.md | 21 +- .../operations/adddevicetodvrglobals.md | 41 +- .../operations/adddevicetodvrrequest.md | 21 +- .../adddownloadqueueitemsglobals.md | 41 +- .../adddownloadqueueitemsrequest.md | 21 +- .../sdk/models/operations/addextrasglobals.md | 41 +- .../sdk/models/operations/addextrasrequest.md | 21 +- .../sdk/models/operations/addlineupglobals.md | 41 +- .../sdk/models/operations/addlineuprequest.md | 21 +- .../operations/addplaylistitemsglobals.md | 41 +- .../operations/addplaylistitemsrequest.md | 21 +- .../models/operations/addproviderglobals.md | 41 +- .../models/operations/addproviderrequest.md | 21 +- .../models/operations/addsectionglobals.md | 41 +- .../models/operations/addsectionrequest.md | 21 +- .../models/operations/addsubtitlesglobals.md | 41 +- .../models/operations/addsubtitlesrequest.md | 21 +- .../operations/addtoplayqueueglobals.md | 41 +- .../operations/addtoplayqueuerequest.md | 21 +- .../operations/analyzemetadataglobals.md | 41 +- .../operations/analyzemetadatarequest.md | 21 +- .../models/operations/applyupdatesglobals.md | 41 +- .../models/operations/applyupdatesrequest.md | 21 +- .../models/operations/autocompleteglobals.md | 41 +- .../models/operations/autocompleterequest.md | 21 +- .../operations/cancelactivityglobals.md | 41 +- .../operations/cancelactivityrequest.md | 21 +- .../models/operations/cancelgrabglobals.md | 41 +- .../models/operations/cancelgrabrequest.md | 21 +- .../models/operations/cancelrefreshglobals.md | 41 +- .../models/operations/cancelrefreshrequest.md | 21 +- .../models/operations/checkupdatesglobals.md | 41 +- .../models/operations/checkupdatesrequest.md | 21 +- .../operations/clearplaylistitemsglobals.md | 41 +- .../operations/clearplaylistitemsrequest.md | 21 +- .../operations/clearplayqueueglobals.md | 41 +- .../operations/clearplayqueuerequest.md | 21 +- .../operations/computechannelmapglobals.md | 41 +- .../operations/computechannelmaprequest.md | 25 +- .../operations/connectwebsocketglobals.md | 41 +- .../operations/connectwebsocketrequest.md | 21 +- .../operations/createcollectionglobals.md | 41 +- .../operations/createcollectionrequest.md | 21 +- .../operations/createcustomhubglobals.md | 41 +- .../operations/createcustomhubrequest.md | 21 +- .../sdk/models/operations/createdvrglobals.md | 41 +- .../sdk/models/operations/createdvrrequest.md | 25 +- .../models/operations/createmarkerglobals.md | 41 +- .../models/operations/createmarkerrequest.md | 21 +- .../operations/createplaylistglobals.md | 41 +- .../operations/createplaylistrequest.md | 21 +- .../operations/createplayqueueglobals.md | 41 +- .../operations/createplayqueuerequest.md | 21 +- .../operations/createsubscriptionglobals.md | 41 +- .../operations/createsubscriptionrequest.md | 21 +- .../operations/deletecollectionglobals.md | 41 +- .../operations/deletecollectionitemglobals.md | 41 +- .../operations/deletecollectionitemrequest.md | 21 +- .../operations/deletecollectionrequest.md | 21 +- .../operations/deletecustomhubglobals.md | 41 +- .../operations/deletecustomhubrequest.md | 21 +- .../sdk/models/operations/deletedvrglobals.md | 41 +- .../sdk/models/operations/deletedvrrequest.md | 21 +- .../models/operations/deletehistoryglobals.md | 41 +- .../models/operations/deletehistoryrequest.md | 21 +- .../models/operations/deleteindexesglobals.md | 41 +- .../models/operations/deleteindexesrequest.md | 21 +- .../models/operations/deleteintrosglobals.md | 41 +- .../models/operations/deleteintrosrequest.md | 21 +- .../operations/deletelibrarysectionglobals.md | 41 +- .../operations/deletelibrarysectionrequest.md | 21 +- .../models/operations/deletelineupglobals.md | 41 +- .../models/operations/deletelineuprequest.md | 21 +- .../models/operations/deletemarkerglobals.md | 41 +- .../models/operations/deletemarkerrequest.md | 21 +- .../operations/deletemediaitemglobals.md | 41 +- .../operations/deletemediaitemrequest.md | 21 +- .../operations/deletemediaproviderglobals.md | 41 +- .../operations/deletemediaproviderrequest.md | 21 +- .../operations/deletemetadataitemglobals.md | 41 +- .../operations/deletemetadataitemrequest.md | 21 +- .../operations/deleteplaylistglobals.md | 41 +- .../operations/deleteplaylistitemglobals.md | 41 +- .../operations/deleteplaylistitemrequest.md | 21 +- .../operations/deleteplaylistrequest.md | 21 +- .../operations/deleteplayqueueitemglobals.md | 41 +- .../operations/deleteplayqueueitemrequest.md | 21 +- .../models/operations/deletestreamglobals.md | 41 +- .../models/operations/deletestreamrequest.md | 21 +- .../operations/deletesubscriptionglobals.md | 41 +- .../operations/deletesubscriptionrequest.md | 21 +- .../sdk/models/operations/detectadsglobals.md | 41 +- .../sdk/models/operations/detectadsrequest.md | 21 +- .../models/operations/detectcreditsglobals.md | 41 +- .../models/operations/detectcreditsrequest.md | 21 +- .../models/operations/detectintrosglobals.md | 41 +- .../models/operations/detectintrosrequest.md | 21 +- .../operations/detectvoiceactivityglobals.md | 41 +- .../operations/detectvoiceactivityrequest.md | 21 +- .../models/operations/editmarkerglobals.md | 41 +- .../models/operations/editmarkerrequest.md | 21 +- .../operations/editmetadataitemglobals.md | 41 +- .../operations/editmetadataitemrequest.md | 21 +- .../models/operations/editsectionglobals.md | 41 +- .../models/operations/editsectionrequest.md | 21 +- .../editsubscriptionpreferencesglobals.md | 41 +- .../editsubscriptionpreferencesrequest.md | 21 +- .../models/operations/emptytrashglobals.md | 41 +- .../models/operations/emptytrashrequest.md | 21 +- .../operations/enablepapertrailglobals.md | 41 +- .../operations/enablepapertrailrequest.md | 21 +- .../operations/generatethumbsglobals.md | 41 +- .../operations/generatethumbsrequest.md | 21 +- .../sdk/models/operations/getalbumsglobals.md | 41 +- .../sdk/models/operations/getalbumsrequest.md | 21 +- .../models/operations/getallhubsglobals.md | 41 +- .../models/operations/getallhubsrequest.md | 21 +- .../operations/getallitemleavesglobals.md | 41 +- .../operations/getallitemleavesrequest.md | 21 +- .../models/operations/getallleavesglobals.md | 41 +- .../models/operations/getallleavesrequest.md | 21 +- .../operations/getallsubscriptionsglobals.md | 41 +- .../operations/getallsubscriptionsrequest.md | 21 +- docs/sdk/models/operations/getartsglobals.md | 41 +- docs/sdk/models/operations/getartsrequest.md | 21 +- .../getaugmentationstatusglobals.md | 41 +- .../getaugmentationstatusrequest.md | 21 +- .../operations/getavailablegrabbersglobals.md | 41 +- .../operations/getavailablegrabbersrequest.md | 21 +- .../operations/getavailablesortsglobals.md | 41 +- .../operations/getavailablesortsrequest.md | 21 +- .../models/operations/getcategoriesglobals.md | 41 +- .../models/operations/getcategoriesrequest.md | 21 +- .../models/operations/getchannelsglobals.md | 41 +- .../models/operations/getchannelsrequest.md | 21 +- .../operations/getchapterimageglobals.md | 41 +- .../operations/getchapterimagerequest.md | 21 +- .../models/operations/getclusterglobals.md | 41 +- .../models/operations/getclusterrequest.md | 21 +- .../operations/getcollectionimageglobals.md | 41 +- .../operations/getcollectionimagerequest.md | 21 +- .../operations/getcollectionitemsglobals.md | 41 +- .../operations/getcollectionitemsrequest.md | 21 +- .../operations/getcollectionsglobals.md | 41 +- .../operations/getcollectionsrequest.md | 21 +- .../sdk/models/operations/getcolorsglobals.md | 41 +- .../sdk/models/operations/getcolorsrequest.md | 21 +- .../sdk/models/operations/getcommonglobals.md | 41 +- .../sdk/models/operations/getcommonrequest.md | 21 +- .../operations/getcontinuewatchingglobals.md | 41 +- .../operations/getcontinuewatchingrequest.md | 21 +- .../operations/getcountrieslineupsglobals.md | 41 +- .../operations/getcountrieslineupsrequest.md | 21 +- .../operations/getcountryregionsglobals.md | 41 +- .../operations/getcountryregionsrequest.md | 21 +- .../operations/getdevicedetailsglobals.md | 41 +- .../operations/getdevicedetailsrequest.md | 21 +- .../operations/getdeviceschannelsglobals.md | 41 +- .../operations/getdeviceschannelsrequest.md | 21 +- .../operations/getdownloadqueueglobals.md | 41 +- .../getdownloadqueueitemsglobals.md | 41 +- .../getdownloadqueueitemsrequest.md | 21 +- .../getdownloadqueuemediaglobals.md | 41 +- .../getdownloadqueuemediarequest.md | 21 +- .../operations/getdownloadqueuerequest.md | 21 +- docs/sdk/models/operations/getdvrglobals.md | 41 +- docs/sdk/models/operations/getdvrrequest.md | 21 +- .../sdk/models/operations/getextrasglobals.md | 41 +- .../sdk/models/operations/getextrasrequest.md | 21 +- docs/sdk/models/operations/getfileglobals.md | 41 +- docs/sdk/models/operations/getfilerequest.md | 21 +- .../operations/getfirstcharactersglobals.md | 41 +- .../operations/getfirstcharactersrequest.md | 21 +- .../models/operations/getfoldersglobals.md | 41 +- .../models/operations/getfoldersrequest.md | 21 +- .../operations/gethistoryitemglobals.md | 41 +- .../operations/gethistoryitemrequest.md | 21 +- .../models/operations/gethubitemsglobals.md | 41 +- .../models/operations/gethubitemsrequest.md | 21 +- .../operations/getimagefrombifglobals.md | 41 +- .../operations/getimagefrombifrequest.md | 21 +- docs/sdk/models/operations/getimageglobals.md | 41 +- docs/sdk/models/operations/getimagerequest.md | 21 +- .../operations/getitemartworkglobals.md | 41 +- .../operations/getitemartworkrequest.md | 21 +- .../operations/getitemdecisionglobals.md | 41 +- .../operations/getitemdecisionrequest.md | 21 +- .../models/operations/getitemtreeglobals.md | 41 +- .../models/operations/getitemtreerequest.md | 21 +- .../operations/getlibrarydetailsglobals.md | 41 +- .../operations/getlibrarydetailsrequest.md | 21 +- .../operations/getlibraryitemsglobals.md | 41 +- .../operations/getlibraryitemsrequest.md | 21 +- .../operations/getlibrarymatchesglobals.md | 41 +- .../operations/getlibrarymatchesrequest.md | 21 +- .../operations/getlineupchannelsglobals.md | 41 +- .../operations/getlineupchannelsrequest.md | 21 +- .../sdk/models/operations/getlineupglobals.md | 41 +- .../sdk/models/operations/getlineuprequest.md | 25 +- .../operations/getlivetvsessionglobals.md | 41 +- .../operations/getlivetvsessionrequest.md | 21 +- .../models/operations/getmediapartglobals.md | 41 +- .../models/operations/getmediapartrequest.md | 21 +- .../operations/getmetadatahubsglobals.md | 41 +- .../operations/getmetadatahubsrequest.md | 21 +- .../operations/getmetadataitemglobals.md | 41 +- .../operations/getmetadataitemrequest.md | 21 +- .../operations/getnotificationsglobals.md | 41 +- .../operations/getnotificationsrequest.md | 21 +- .../models/operations/getpartindexglobals.md | 41 +- .../models/operations/getpartindexrequest.md | 21 +- .../sdk/models/operations/getpersonglobals.md | 41 +- .../sdk/models/operations/getpersonrequest.md | 21 +- .../operations/getplaylistgeneratorglobals.md | 41 +- .../getplaylistgeneratoritemsglobals.md | 41 +- .../getplaylistgeneratoritemsrequest.md | 21 +- .../operations/getplaylistgeneratorrequest.md | 21 +- .../getplaylistgeneratorsglobals.md | 41 +- .../getplaylistgeneratorsrequest.md | 21 +- .../models/operations/getplaylistglobals.md | 41 +- .../operations/getplaylistitemsglobals.md | 41 +- .../operations/getplaylistitemsrequest.md | 21 +- .../models/operations/getplaylistrequest.md | 21 +- .../models/operations/getplayqueueglobals.md | 41 +- .../models/operations/getplayqueuerequest.md | 21 +- .../operations/getpostplayhubsglobals.md | 41 +- .../operations/getpostplayhubsrequest.md | 21 +- .../models/operations/getpreferenceglobals.md | 41 +- .../models/operations/getpreferencerequest.md | 21 +- .../operations/getpromotedhubsglobals.md | 41 +- .../operations/getpromotedhubsrequest.md | 21 +- .../operations/getrandomartworkglobals.md | 41 +- .../operations/getrandomartworkrequest.md | 21 +- .../operations/getrelatedhubsglobals.md | 41 +- .../operations/getrelatedhubsrequest.md | 21 +- .../operations/getrelateditemsglobals.md | 41 +- .../operations/getrelateditemsrequest.md | 21 +- .../operations/getsectionfiltersglobals.md | 41 +- .../operations/getsectionfiltersrequest.md | 21 +- .../operations/getsectionhubsglobals.md | 41 +- .../operations/getsectionhubsrequest.md | 21 +- .../operations/getsectionimageglobals.md | 41 +- .../operations/getsectionimagerequest.md | 21 +- .../getsectionpreferencesglobals.md | 41 +- .../getsectionpreferencesrequest.md | 21 +- .../operations/getsectionsprefsglobals.md | 41 +- .../operations/getsectionsprefsrequest.md | 21 +- .../models/operations/getserverinfoglobals.md | 41 +- .../models/operations/getserverinforequest.md | 21 +- .../getsessionplaylistindexglobals.md | 41 +- .../getsessionplaylistindexrequest.md | 21 +- .../operations/getsessionsegmentglobals.md | 41 +- .../operations/getsessionsegmentrequest.md | 21 +- .../operations/getsonicallysimilarglobals.md | 41 +- .../operations/getsonicallysimilarrequest.md | 21 +- .../models/operations/getsonicpathglobals.md | 41 +- .../models/operations/getsonicpathrequest.md | 21 +- .../getsourceconnectioninformationglobals.md | 41 +- .../getsourceconnectioninformationrequest.md | 21 +- .../sdk/models/operations/getstreamglobals.md | 41 +- .../operations/getstreamlevelsglobals.md | 41 +- .../operations/getstreamlevelsrequest.md | 21 +- .../operations/getstreamloudnessglobals.md | 41 +- .../operations/getstreamloudnessrequest.md | 21 +- .../sdk/models/operations/getstreamrequest.md | 21 +- .../operations/getsubscriptionglobals.md | 41 +- .../operations/getsubscriptionrequest.md | 21 +- docs/sdk/models/operations/gettagsglobals.md | 41 +- docs/sdk/models/operations/gettagsrequest.md | 21 +- .../models/operations/gettemplateglobals.md | 41 +- .../models/operations/gettemplaterequest.md | 21 +- docs/sdk/models/operations/getthumbglobals.md | 41 +- docs/sdk/models/operations/getthumbrequest.md | 25 +- .../operations/gettransienttokenglobals.md | 41 +- .../operations/gettransienttokenrequest.md | 21 +- .../operations/ingesttransientitemglobals.md | 41 +- .../operations/ingesttransientitemrequest.md | 21 +- .../models/operations/listcontentglobals.md | 41 +- .../models/operations/listcontentrequest.md | 21 +- .../listdownloadqueueitemsglobals.md | 41 +- .../listdownloadqueueitemsrequest.md | 21 +- docs/sdk/models/operations/listhubsglobals.md | 41 +- docs/sdk/models/operations/listhubsrequest.md | 21 +- .../models/operations/listlineupsglobals.md | 41 +- .../models/operations/listlineupsrequest.md | 21 +- .../models/operations/listmatchesglobals.md | 41 +- .../models/operations/listmatchesrequest.md | 21 +- .../models/operations/listmomentsglobals.md | 41 +- .../models/operations/listmomentsrequest.md | 21 +- .../operations/listpersonmediaglobals.md | 41 +- .../operations/listpersonmediarequest.md | 21 +- .../operations/listplaybackhistoryglobals.md | 41 +- .../operations/listplaybackhistoryrequest.md | 21 +- .../models/operations/listplaylistsglobals.md | 41 +- .../models/operations/listplaylistsrequest.md | 21 +- .../models/operations/listsimilarglobals.md | 41 +- .../models/operations/listsimilarrequest.md | 21 +- .../operations/listsonicallysimilarglobals.md | 41 +- .../operations/listsonicallysimilarrequest.md | 21 +- .../models/operations/listtopusersglobals.md | 41 +- .../models/operations/listtopusersrequest.md | 21 +- .../models/operations/makedecisionglobals.md | 41 +- .../models/operations/makedecisionrequest.md | 21 +- .../models/operations/markplayedglobals.md | 41 +- .../models/operations/markplayedrequest.md | 21 +- .../sdk/models/operations/matchitemglobals.md | 41 +- .../sdk/models/operations/matchitemrequest.md | 21 +- .../models/operations/mergeitemsglobals.md | 41 +- .../models/operations/mergeitemsrequest.md | 21 +- .../models/operations/modifydeviceglobals.md | 41 +- .../models/operations/modifydevicerequest.md | 21 +- .../modifyplaylistgeneratorglobals.md | 41 +- .../modifyplaylistgeneratorrequest.md | 21 +- .../operations/movecollectionitemglobals.md | 41 +- .../operations/movecollectionitemrequest.md | 21 +- docs/sdk/models/operations/movehubglobals.md | 41 +- docs/sdk/models/operations/movehubrequest.md | 21 +- .../operations/moveplaylistitemglobals.md | 41 +- .../operations/moveplaylistitemrequest.md | 21 +- .../operations/moveplayqueueitemglobals.md | 41 +- .../operations/moveplayqueueitemrequest.md | 21 +- .../operations/optimizedatabaseglobals.md | 41 +- .../operations/optimizedatabaserequest.md | 21 +- .../operations/refreshitemsmetadataglobals.md | 41 +- .../operations/refreshitemsmetadatarequest.md | 21 +- .../operations/refreshplaylistglobals.md | 41 +- .../operations/refreshplaylistrequest.md | 21 +- .../operations/refreshsectionglobals.md | 41 +- .../operations/refreshsectionrequest.md | 21 +- .../refreshsectionsmetadataglobals.md | 41 +- .../refreshsectionsmetadatarequest.md | 21 +- .../models/operations/reloadguideglobals.md | 41 +- .../models/operations/reloadguiderequest.md | 21 +- .../operations/removedevicefromdvrglobals.md | 41 +- .../operations/removedevicefromdvrrequest.md | 21 +- .../models/operations/removedeviceglobals.md | 41 +- .../models/operations/removedevicerequest.md | 21 +- .../removedownloadqueueitemsglobals.md | 41 +- .../removedownloadqueueitemsrequest.md | 21 +- .../operations/reordersubscriptionglobals.md | 41 +- .../operations/reordersubscriptionrequest.md | 21 +- docs/sdk/models/operations/reportglobals.md | 41 +- docs/sdk/models/operations/reportrequest.md | 21 +- .../operations/resetplayqueueglobals.md | 41 +- .../operations/resetplayqueuerequest.md | 21 +- .../operations/resetsectiondefaultsglobals.md | 41 +- .../operations/resetsectiondefaultsrequest.md | 21 +- ...tartprocessingdownloadqueueitemsglobals.md | 41 +- ...tartprocessingdownloadqueueitemsrequest.md | 21 +- docs/sdk/models/operations/scanglobals.md | 41 +- docs/sdk/models/operations/scanrequest.md | 21 +- .../models/operations/searchhubsglobals.md | 41 +- .../models/operations/searchhubsrequest.md | 21 +- .../models/operations/setchannelmapglobals.md | 41 +- .../models/operations/setchannelmaprequest.md | 21 +- .../operations/setdevicepreferencesglobals.md | 41 +- .../operations/setdevicepreferencesrequest.md | 21 +- .../operations/setdvrpreferencesglobals.md | 41 +- .../operations/setdvrpreferencesrequest.md | 21 +- .../operations/setitemartworkglobals.md | 41 +- .../operations/setitemartworkrequest.md | 21 +- .../operations/setitempreferencesglobals.md | 41 +- .../operations/setitempreferencesrequest.md | 21 +- .../operations/setpreferencesglobals.md | 41 +- .../operations/setpreferencesrequest.md | 21 +- .../sdk/models/operations/setratingglobals.md | 41 +- .../sdk/models/operations/setratingrequest.md | 21 +- .../setsectionpreferencesglobals.md | 41 +- .../setsectionpreferencesrequest.md | 21 +- .../operations/setstreamoffsetglobals.md | 41 +- .../operations/setstreamoffsetrequest.md | 21 +- .../operations/setstreamselectionglobals.md | 41 +- .../operations/setstreamselectionrequest.md | 21 +- docs/sdk/models/operations/shuffleglobals.md | 41 +- docs/sdk/models/operations/shufflerequest.md | 21 +- .../sdk/models/operations/splititemglobals.md | 41 +- .../sdk/models/operations/splititemrequest.md | 21 +- .../models/operations/startanalysisglobals.md | 41 +- .../models/operations/startanalysisrequest.md | 21 +- .../operations/startbifgenerationglobals.md | 41 +- .../operations/startbifgenerationrequest.md | 21 +- .../sdk/models/operations/starttaskglobals.md | 41 +- .../sdk/models/operations/starttaskrequest.md | 21 +- .../starttranscodesessionglobals.md | 41 +- .../starttranscodesessionrequest.md | 21 +- .../models/operations/stopdvrreloadglobals.md | 41 +- .../models/operations/stopdvrreloadrequest.md | 21 +- docs/sdk/models/operations/stopscanglobals.md | 41 +- docs/sdk/models/operations/stopscanrequest.md | 21 +- docs/sdk/models/operations/stoptaskglobals.md | 41 +- docs/sdk/models/operations/stoptaskrequest.md | 21 +- .../operations/terminatesessionglobals.md | 41 +- .../operations/terminatesessionrequest.md | 21 +- .../operations/transcodeimageglobals.md | 41 +- .../operations/transcodeimagerequest.md | 21 +- .../operations/transcodesubtitlesglobals.md | 41 +- .../operations/transcodesubtitlesrequest.md | 21 +- .../operations/triggerfallbackglobals.md | 41 +- .../operations/triggerfallbackrequest.md | 21 +- .../models/operations/tunechannelglobals.md | 41 +- .../models/operations/tunechannelrequest.md | 21 +- docs/sdk/models/operations/unmatchglobals.md | 41 +- docs/sdk/models/operations/unmatchrequest.md | 21 +- .../models/operations/unscrobbleglobals.md | 41 +- .../models/operations/unscrobblerequest.md | 21 +- .../sdk/models/operations/unshuffleglobals.md | 41 +- .../sdk/models/operations/unshufflerequest.md | 21 +- .../operations/updatehubvisibilityglobals.md | 41 +- .../operations/updatehubvisibilityrequest.md | 21 +- .../operations/updateitemartworkglobals.md | 41 +- .../operations/updateitemartworkrequest.md | 21 +- .../models/operations/updateitemsglobals.md | 41 +- .../models/operations/updateitemsrequest.md | 21 +- .../operations/updateplaylistglobals.md | 41 +- .../operations/updateplaylistrequest.md | 21 +- .../operations/uploadplaylistglobals.md | 41 +- .../operations/uploadplaylistrequest.md | 21 +- .../operations/voicesearchhubsglobals.md | 41 +- .../operations/voicesearchhubsrequest.md | 21 +- .../models/operations/writemessageglobals.md | 41 +- .../models/operations/writemessagerequest.md | 21 +- docs/sdk/models/shared/accepts.md | 16 + docs/sdk/models/shared/security.md | 2 +- docs/sdks/activities/README.md | 44 +- docs/sdks/butler/README.md | 88 +- docs/sdks/collections/README.md | 44 +- docs/sdks/content/README.md | 574 +- docs/sdks/devices/README.md | 490 +- docs/sdks/downloadqueue/README.md | 354 +- docs/sdks/dvrs/README.md | 488 +- docs/sdks/epg/README.md | 316 +- docs/sdks/events/README.md | 88 +- docs/sdks/general/README.md | 134 +- docs/sdks/hubs/README.md | 630 ++- docs/sdks/library/README.md | 3344 ++++++------ docs/sdks/librarycollections/README.md | 132 +- docs/sdks/libraryplaylists/README.md | 576 +- docs/sdks/livetv/README.md | 132 +- docs/sdks/log/README.md | 88 +- docs/sdks/playlist/README.md | 132 +- docs/sdks/playqueue/README.md | 402 +- docs/sdks/preferences/README.md | 88 +- docs/sdks/provider/README.md | 88 +- docs/sdks/rate/README.md | 44 +- docs/sdks/search/README.md | 88 +- docs/sdks/status/README.md | 176 +- docs/sdks/subscriptions/README.md | 356 +- docs/sdks/timeline/README.md | 134 +- docs/sdks/transcoder/README.md | 230 +- docs/sdks/ultrablur/README.md | 90 +- docs/sdks/updater/README.md | 92 +- examples/generalGetServerInfo.example.ts | 35 - examples/package-lock.json | 2 +- ...transcoderStartTranscodeSession.example.ts | 78 + jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/activitiesCancelActivity.ts | 33 +- src/funcs/activitiesListActivities.ts | 6 +- src/funcs/butlerGetTasks.ts | 6 +- src/funcs/butlerStartTask.ts | 33 +- src/funcs/butlerStartTasks.ts | 6 +- src/funcs/butlerStopTask.ts | 33 +- src/funcs/butlerStopTasks.ts | 6 +- src/funcs/collectionsCreateCollection.ts | 33 +- src/funcs/contentGetAlbums.ts | 33 +- src/funcs/contentGetAllLeaves.ts | 33 +- src/funcs/contentGetArts.ts | 33 +- src/funcs/contentGetCategories.ts | 33 +- src/funcs/contentGetCluster.ts | 33 +- src/funcs/contentGetCollectionImage.ts | 33 +- src/funcs/contentGetCollectionItems.ts | 33 +- src/funcs/contentGetFolders.ts | 33 +- src/funcs/contentGetMetadataItem.ts | 33 +- src/funcs/contentGetSonicPath.ts | 33 +- src/funcs/contentGetSonicallySimilar.ts | 33 +- src/funcs/contentListContent.ts | 33 +- src/funcs/contentListMoments.ts | 33 +- src/funcs/devicesAddDevice.ts | 33 +- src/funcs/devicesDiscoverDevices.ts | 6 +- src/funcs/devicesGetAvailableGrabbers.ts | 33 +- src/funcs/devicesGetDeviceDetails.ts | 33 +- src/funcs/devicesGetDevicesChannels.ts | 33 +- src/funcs/devicesGetThumb.ts | 35 +- src/funcs/devicesListDevices.ts | 6 +- src/funcs/devicesModifyDevice.ts | 33 +- src/funcs/devicesRemoveDevice.ts | 33 +- src/funcs/devicesScan.ts | 33 +- src/funcs/devicesSetChannelmap.ts | 33 +- src/funcs/devicesSetDevicePreferences.ts | 33 +- src/funcs/devicesStopScan.ts | 33 +- .../downloadQueueAddDownloadQueueItems.ts | 33 +- src/funcs/downloadQueueCreateDownloadQueue.ts | 6 +- src/funcs/downloadQueueGetDownloadQueue.ts | 33 +- .../downloadQueueGetDownloadQueueItems.ts | 33 +- .../downloadQueueGetDownloadQueueMedia.ts | 33 +- src/funcs/downloadQueueGetItemDecision.ts | 33 +- .../downloadQueueListDownloadQueueItems.ts | 33 +- .../downloadQueueRemoveDownloadQueueItems.ts | 33 +- ...ueueRestartProcessingDownloadQueueItems.ts | 33 +- src/funcs/dvRsAddDeviceToDVR.ts | 33 +- src/funcs/dvRsAddLineup.ts | 33 +- src/funcs/dvRsCreateDVR.ts | 35 +- src/funcs/dvRsDeleteDVR.ts | 33 +- src/funcs/dvRsDeleteLineup.ts | 33 +- src/funcs/dvRsGetDVR.ts | 33 +- src/funcs/dvRsListDVRs.ts | 6 +- src/funcs/dvRsReloadGuide.ts | 33 +- src/funcs/dvRsRemoveDeviceFromDVR.ts | 33 +- src/funcs/dvRsSetDVRPreferences.ts | 33 +- src/funcs/dvRsStopDVRReload.ts | 33 +- src/funcs/dvRsTuneChannel.ts | 33 +- src/funcs/epgComputeChannelMap.ts | 35 +- src/funcs/epgGetAllLanguages.ts | 6 +- src/funcs/epgGetChannels.ts | 33 +- src/funcs/epgGetCountries.ts | 6 +- src/funcs/epgGetCountriesLineups.ts | 33 +- src/funcs/epgGetCountryRegions.ts | 33 +- src/funcs/epgGetLineup.ts | 35 +- src/funcs/epgGetLineupChannels.ts | 33 +- src/funcs/epgListLineups.ts | 33 +- src/funcs/eventsConnectWebSocket.ts | 33 +- src/funcs/eventsGetNotifications.ts | 33 +- src/funcs/generalGetIdentity.ts | 6 +- src/funcs/generalGetServerInfo.ts | 33 +- .../generalGetSourceConnectionInformation.ts | 33 +- src/funcs/generalGetTransientToken.ts | 33 +- src/funcs/hubsCreateCustomHub.ts | 33 +- src/funcs/hubsDeleteCustomHub.ts | 33 +- src/funcs/hubsGetAllHubs.ts | 33 +- src/funcs/hubsGetContinueWatching.ts | 33 +- src/funcs/hubsGetHubItems.ts | 33 +- src/funcs/hubsGetMetadataHubs.ts | 33 +- src/funcs/hubsGetPostplayHubs.ts | 33 +- src/funcs/hubsGetPromotedHubs.ts | 33 +- src/funcs/hubsGetRelatedHubs.ts | 33 +- src/funcs/hubsGetSectionHubs.ts | 33 +- src/funcs/hubsListHubs.ts | 33 +- src/funcs/hubsMoveHub.ts | 33 +- src/funcs/hubsResetSectionDefaults.ts | 33 +- src/funcs/hubsUpdateHubVisibility.ts | 33 +- src/funcs/libraryAddExtras.ts | 33 +- src/funcs/libraryAddSection.ts | 33 +- src/funcs/libraryAddSubtitles.ts | 33 +- src/funcs/libraryAnalyzeMetadata.ts | 33 +- src/funcs/libraryAutocomplete.ts | 33 +- src/funcs/libraryCancelRefresh.ts | 33 +- src/funcs/libraryCleanBundles.ts | 6 +- .../libraryCollectionsAddCollectionItems.ts | 33 +- .../libraryCollectionsDeleteCollectionItem.ts | 33 +- .../libraryCollectionsMoveCollectionItem.ts | 33 +- src/funcs/libraryCreateMarker.ts | 33 +- src/funcs/libraryDeleteCaches.ts | 6 +- src/funcs/libraryDeleteCollection.ts | 33 +- src/funcs/libraryDeleteIndexes.ts | 33 +- src/funcs/libraryDeleteIntros.ts | 33 +- src/funcs/libraryDeleteLibrarySection.ts | 33 +- src/funcs/libraryDeleteMarker.ts | 33 +- src/funcs/libraryDeleteMediaItem.ts | 33 +- src/funcs/libraryDeleteMetadataItem.ts | 33 +- src/funcs/libraryDeleteStream.ts | 33 +- src/funcs/libraryDetectAds.ts | 33 +- src/funcs/libraryDetectCredits.ts | 33 +- src/funcs/libraryDetectIntros.ts | 33 +- src/funcs/libraryDetectVoiceActivity.ts | 33 +- src/funcs/libraryEditMarker.ts | 33 +- src/funcs/libraryEditMetadataItem.ts | 33 +- src/funcs/libraryEditSection.ts | 33 +- src/funcs/libraryEmptyTrash.ts | 33 +- src/funcs/libraryGenerateThumbs.ts | 33 +- src/funcs/libraryGetAllItemLeaves.ts | 33 +- src/funcs/libraryGetAugmentationStatus.ts | 33 +- src/funcs/libraryGetAvailableSorts.ts | 33 +- src/funcs/libraryGetChapterImage.ts | 33 +- src/funcs/libraryGetCollections.ts | 33 +- src/funcs/libraryGetCommon.ts | 33 +- src/funcs/libraryGetExtras.ts | 33 +- src/funcs/libraryGetFile.ts | 33 +- src/funcs/libraryGetFirstCharacters.ts | 33 +- src/funcs/libraryGetImageFromBif.ts | 33 +- src/funcs/libraryGetItemArtwork.ts | 33 +- src/funcs/libraryGetItemTree.ts | 33 +- src/funcs/libraryGetLibraryDetails.ts | 33 +- src/funcs/libraryGetLibraryItems.ts | 33 +- src/funcs/libraryGetLibraryMatches.ts | 33 +- src/funcs/libraryGetMediaPart.ts | 33 +- src/funcs/libraryGetPartIndex.ts | 33 +- src/funcs/libraryGetPerson.ts | 33 +- src/funcs/libraryGetRandomArtwork.ts | 33 +- src/funcs/libraryGetRelatedItems.ts | 33 +- src/funcs/libraryGetSectionFilters.ts | 33 +- src/funcs/libraryGetSectionImage.ts | 33 +- src/funcs/libraryGetSectionPreferences.ts | 33 +- src/funcs/libraryGetSections.ts | 6 +- src/funcs/libraryGetSectionsPrefs.ts | 33 +- src/funcs/libraryGetStream.ts | 33 +- src/funcs/libraryGetStreamLevels.ts | 33 +- src/funcs/libraryGetStreamLoudness.ts | 33 +- src/funcs/libraryGetTags.ts | 33 +- src/funcs/libraryIngestTransientItem.ts | 33 +- src/funcs/libraryListMatches.ts | 33 +- src/funcs/libraryListPersonMedia.ts | 33 +- src/funcs/libraryListSimilar.ts | 33 +- src/funcs/libraryListSonicallySimilar.ts | 33 +- src/funcs/libraryListTopUsers.ts | 33 +- src/funcs/libraryMatchItem.ts | 33 +- src/funcs/libraryMergeItems.ts | 33 +- src/funcs/libraryOptimizeDatabase.ts | 33 +- src/funcs/libraryPlaylistsAddPlaylistItems.ts | 33 +- .../libraryPlaylistsClearPlaylistItems.ts | 33 +- src/funcs/libraryPlaylistsCreatePlaylist.ts | 33 +- src/funcs/libraryPlaylistsDeletePlaylist.ts | 33 +- .../libraryPlaylistsDeletePlaylistItem.ts | 33 +- .../libraryPlaylistsGetPlaylistGenerator.ts | 33 +- ...braryPlaylistsGetPlaylistGeneratorItems.ts | 33 +- .../libraryPlaylistsGetPlaylistGenerators.ts | 33 +- ...libraryPlaylistsModifyPlaylistGenerator.ts | 33 +- src/funcs/libraryPlaylistsMovePlaylistItem.ts | 33 +- src/funcs/libraryPlaylistsRefreshPlaylist.ts | 33 +- src/funcs/libraryPlaylistsUpdatePlaylist.ts | 33 +- src/funcs/libraryPlaylistsUploadPlaylist.ts | 33 +- src/funcs/libraryRefreshItemsMetadata.ts | 33 +- src/funcs/libraryRefreshSection.ts | 33 +- src/funcs/libraryRefreshSectionsMetadata.ts | 33 +- src/funcs/librarySetItemArtwork.ts | 33 +- src/funcs/librarySetItemPreferences.ts | 33 +- src/funcs/librarySetSectionPreferences.ts | 33 +- src/funcs/librarySetStreamOffset.ts | 33 +- src/funcs/librarySetStreamSelection.ts | 33 +- src/funcs/librarySplitItem.ts | 33 +- src/funcs/libraryStartAnalysis.ts | 33 +- src/funcs/libraryStartBifGeneration.ts | 33 +- src/funcs/libraryStopAllRefreshes.ts | 6 +- src/funcs/libraryUnmatch.ts | 33 +- src/funcs/libraryUpdateItemArtwork.ts | 33 +- src/funcs/libraryUpdateItems.ts | 33 +- src/funcs/liveTVGetLiveTVSession.ts | 33 +- src/funcs/liveTVGetSessionPlaylistIndex.ts | 33 +- src/funcs/liveTVGetSessionSegment.ts | 33 +- src/funcs/liveTVGetSessions.ts | 6 +- src/funcs/logEnablePapertrail.ts | 33 +- src/funcs/logWriteLog.ts | 6 +- src/funcs/logWriteMessage.ts | 33 +- src/funcs/playQueueAddToPlayQueue.ts | 33 +- src/funcs/playQueueClearPlayQueue.ts | 33 +- src/funcs/playQueueCreatePlayQueue.ts | 33 +- src/funcs/playQueueDeletePlayQueueItem.ts | 33 +- src/funcs/playQueueGetPlayQueue.ts | 33 +- src/funcs/playQueueMovePlayQueueItem.ts | 33 +- src/funcs/playQueueResetPlayQueue.ts | 33 +- src/funcs/playQueueShuffle.ts | 33 +- src/funcs/playQueueUnshuffle.ts | 33 +- src/funcs/playlistGetPlaylist.ts | 33 +- src/funcs/playlistGetPlaylistItems.ts | 33 +- src/funcs/playlistListPlaylists.ts | 33 +- src/funcs/preferencesGetAllPreferences.ts | 6 +- src/funcs/preferencesGetPreference.ts | 33 +- src/funcs/preferencesSetPreferences.ts | 33 +- src/funcs/providerAddProvider.ts | 33 +- src/funcs/providerDeleteMediaProvider.ts | 33 +- src/funcs/providerListProviders.ts | 6 +- src/funcs/providerRefreshProviders.ts | 6 +- src/funcs/rateSetRating.ts | 33 +- src/funcs/searchSearchHubs.ts | 33 +- src/funcs/searchVoiceSearchHubs.ts | 33 +- src/funcs/statusDeleteHistory.ts | 33 +- src/funcs/statusGetBackgroundTasks.ts | 6 +- src/funcs/statusGetHistoryItem.ts | 33 +- src/funcs/statusListPlaybackHistory.ts | 33 +- src/funcs/statusListSessions.ts | 6 +- src/funcs/statusTerminateSession.ts | 33 +- src/funcs/subscriptionsCancelGrab.ts | 33 +- src/funcs/subscriptionsCreateSubscription.ts | 33 +- src/funcs/subscriptionsDeleteSubscription.ts | 33 +- ...ubscriptionsEditSubscriptionPreferences.ts | 33 +- src/funcs/subscriptionsGetAllSubscriptions.ts | 33 +- .../subscriptionsGetScheduledRecordings.ts | 6 +- src/funcs/subscriptionsGetSubscription.ts | 33 +- src/funcs/subscriptionsGetTemplate.ts | 33 +- .../subscriptionsProcessSubscriptions.ts | 6 +- src/funcs/subscriptionsReorderSubscription.ts | 33 +- src/funcs/timelineMarkPlayed.ts | 33 +- src/funcs/timelineReport.ts | 37 +- src/funcs/timelineUnscrobble.ts | 33 +- src/funcs/transcoderMakeDecision.ts | 101 +- src/funcs/transcoderStartTranscodeSession.ts | 101 +- src/funcs/transcoderTranscodeImage.ts | 33 +- src/funcs/transcoderTranscodeSubtitles.ts | 101 +- src/funcs/transcoderTriggerFallback.ts | 33 +- src/funcs/ultraBlurGetColors.ts | 33 +- src/funcs/ultraBlurGetImage.ts | 33 +- src/funcs/updaterApplyUpdates.ts | 33 +- src/funcs/updaterCheckUpdates.ts | 33 +- src/funcs/updaterGetUpdatesStatus.ts | 6 +- src/lib/config.ts | 52 +- src/lib/security.ts | 2 +- .../models/operations/addcollectionitems.ts | 254 +- src/sdk/models/operations/adddevice.ts | 254 +- src/sdk/models/operations/adddevicetodvr.ts | 254 +- .../operations/adddownloadqueueitems.ts | 254 +- src/sdk/models/operations/addextras.ts | 255 +- src/sdk/models/operations/addlineup.ts | 254 +- src/sdk/models/operations/addplaylistitems.ts | 254 +- src/sdk/models/operations/addprovider.ts | 255 +- src/sdk/models/operations/addsection.ts | 254 +- src/sdk/models/operations/addsubtitles.ts | 254 +- src/sdk/models/operations/addtoplayqueue.ts | 254 +- src/sdk/models/operations/analyzemetadata.ts | 255 +- src/sdk/models/operations/applyupdates.ts | 254 +- src/sdk/models/operations/autocomplete.ts | 254 +- src/sdk/models/operations/cancelactivity.ts | 255 +- src/sdk/models/operations/cancelgrab.ts | 255 +- src/sdk/models/operations/cancelrefresh.ts | 255 +- src/sdk/models/operations/checkupdates.ts | 254 +- .../models/operations/clearplaylistitems.ts | 254 +- src/sdk/models/operations/clearplayqueue.ts | 254 +- .../models/operations/computechannelmap.ts | 263 +- src/sdk/models/operations/connectwebsocket.ts | 255 +- src/sdk/models/operations/createcollection.ts | 254 +- src/sdk/models/operations/createcustomhub.ts | 254 +- src/sdk/models/operations/createdvr.ts | 262 +- src/sdk/models/operations/createmarker.ts | 255 +- src/sdk/models/operations/createplaylist.ts | 254 +- src/sdk/models/operations/createplayqueue.ts | 254 +- .../models/operations/createsubscription.ts | 254 +- src/sdk/models/operations/deletecollection.ts | 255 +- .../models/operations/deletecollectionitem.ts | 254 +- src/sdk/models/operations/deletecustomhub.ts | 255 +- src/sdk/models/operations/deletedvr.ts | 255 +- src/sdk/models/operations/deletehistory.ts | 254 +- src/sdk/models/operations/deleteindexes.ts | 255 +- src/sdk/models/operations/deleteintros.ts | 255 +- .../models/operations/deletelibrarysection.ts | 254 +- src/sdk/models/operations/deletelineup.ts | 254 +- src/sdk/models/operations/deletemarker.ts | 255 +- src/sdk/models/operations/deletemediaitem.ts | 254 +- .../models/operations/deletemediaprovider.ts | 255 +- .../models/operations/deletemetadataitem.ts | 254 +- src/sdk/models/operations/deleteplaylist.ts | 255 +- .../models/operations/deleteplaylistitem.ts | 254 +- .../models/operations/deleteplayqueueitem.ts | 254 +- src/sdk/models/operations/deletestream.ts | 255 +- .../models/operations/deletesubscription.ts | 255 +- src/sdk/models/operations/detectads.ts | 255 +- src/sdk/models/operations/detectcredits.ts | 254 +- src/sdk/models/operations/detectintros.ts | 254 +- .../models/operations/detectvoiceactivity.ts | 254 +- src/sdk/models/operations/editmarker.ts | 254 +- src/sdk/models/operations/editmetadataitem.ts | 255 +- src/sdk/models/operations/editsection.ts | 255 +- .../operations/editsubscriptionpreferences.ts | 254 +- src/sdk/models/operations/emptytrash.ts | 255 +- src/sdk/models/operations/enablepapertrail.ts | 255 +- src/sdk/models/operations/generatethumbs.ts | 254 +- src/sdk/models/operations/getalbums.ts | 254 +- src/sdk/models/operations/getallhubs.ts | 254 +- src/sdk/models/operations/getallitemleaves.ts | 254 +- src/sdk/models/operations/getallleaves.ts | 254 +- .../models/operations/getallsubscriptions.ts | 254 +- src/sdk/models/operations/getarts.ts | 254 +- .../operations/getaugmentationstatus.ts | 254 +- .../models/operations/getavailablegrabbers.ts | 255 +- .../models/operations/getavailablesorts.ts | 254 +- src/sdk/models/operations/getcategories.ts | 254 +- src/sdk/models/operations/getchannels.ts | 254 +- src/sdk/models/operations/getchapterimage.ts | 255 +- src/sdk/models/operations/getcluster.ts | 254 +- .../models/operations/getcollectionimage.ts | 254 +- .../models/operations/getcollectionitems.ts | 254 +- src/sdk/models/operations/getcollections.ts | 254 +- src/sdk/models/operations/getcolors.ts | 255 +- src/sdk/models/operations/getcommon.ts | 254 +- .../models/operations/getcontinuewatching.ts | 254 +- .../models/operations/getcountrieslineups.ts | 254 +- .../models/operations/getcountryregions.ts | 255 +- src/sdk/models/operations/getdevicedetails.ts | 254 +- .../models/operations/getdeviceschannels.ts | 255 +- src/sdk/models/operations/getdownloadqueue.ts | 255 +- .../operations/getdownloadqueueitems.ts | 254 +- .../operations/getdownloadqueuemedia.ts | 255 +- src/sdk/models/operations/getdvr.ts | 254 +- src/sdk/models/operations/getextras.ts | 254 +- src/sdk/models/operations/getfile.ts | 255 +- .../models/operations/getfirstcharacters.ts | 254 +- src/sdk/models/operations/getfolders.ts | 255 +- src/sdk/models/operations/gethistoryitem.ts | 254 +- src/sdk/models/operations/gethubitems.ts | 254 +- src/sdk/models/operations/getimage.ts | 254 +- src/sdk/models/operations/getimagefrombif.ts | 255 +- src/sdk/models/operations/getitemartwork.ts | 255 +- src/sdk/models/operations/getitemdecision.ts | 254 +- src/sdk/models/operations/getitemtree.ts | 254 +- .../models/operations/getlibrarydetails.ts | 254 +- src/sdk/models/operations/getlibraryitems.ts | 254 +- .../models/operations/getlibrarymatches.ts | 254 +- src/sdk/models/operations/getlineup.ts | 263 +- .../models/operations/getlineupchannels.ts | 254 +- src/sdk/models/operations/getlivetvsession.ts | 254 +- src/sdk/models/operations/getmediapart.ts | 254 +- src/sdk/models/operations/getmetadatahubs.ts | 254 +- src/sdk/models/operations/getmetadataitem.ts | 254 +- src/sdk/models/operations/getnotifications.ts | 255 +- src/sdk/models/operations/getpartindex.ts | 255 +- src/sdk/models/operations/getperson.ts | 254 +- src/sdk/models/operations/getplaylist.ts | 254 +- .../models/operations/getplaylistgenerator.ts | 255 +- .../operations/getplaylistgeneratoritems.ts | 254 +- .../operations/getplaylistgenerators.ts | 255 +- src/sdk/models/operations/getplaylistitems.ts | 254 +- src/sdk/models/operations/getplayqueue.ts | 254 +- src/sdk/models/operations/getpostplayhubs.ts | 254 +- src/sdk/models/operations/getpreference.ts | 254 +- src/sdk/models/operations/getpromotedhubs.ts | 254 +- src/sdk/models/operations/getrandomartwork.ts | 254 +- src/sdk/models/operations/getrelatedhubs.ts | 254 +- src/sdk/models/operations/getrelateditems.ts | 254 +- .../models/operations/getsectionfilters.ts | 254 +- src/sdk/models/operations/getsectionhubs.ts | 254 +- src/sdk/models/operations/getsectionimage.ts | 254 +- .../operations/getsectionpreferences.ts | 254 +- src/sdk/models/operations/getsectionsprefs.ts | 254 +- src/sdk/models/operations/getserverinfo.ts | 254 +- .../operations/getsessionplaylistindex.ts | 255 +- .../models/operations/getsessionsegment.ts | 255 +- .../models/operations/getsonicallysimilar.ts | 254 +- src/sdk/models/operations/getsonicpath.ts | 254 +- .../getsourceconnectioninformation.ts | 254 +- src/sdk/models/operations/getstream.ts | 254 +- src/sdk/models/operations/getstreamlevels.ts | 255 +- .../models/operations/getstreamloudness.ts | 255 +- src/sdk/models/operations/getsubscription.ts | 254 +- src/sdk/models/operations/gettags.ts | 255 +- src/sdk/models/operations/gettemplate.ts | 254 +- src/sdk/models/operations/getthumb.ts | 263 +- .../models/operations/gettransienttoken.ts | 255 +- .../models/operations/ingesttransientitem.ts | 254 +- src/sdk/models/operations/listcontent.ts | 254 +- .../operations/listdownloadqueueitems.ts | 254 +- src/sdk/models/operations/listhubs.ts | 255 +- src/sdk/models/operations/listlineups.ts | 254 +- src/sdk/models/operations/listmatches.ts | 254 +- src/sdk/models/operations/listmoments.ts | 254 +- src/sdk/models/operations/listpersonmedia.ts | 254 +- .../models/operations/listplaybackhistory.ts | 255 +- src/sdk/models/operations/listplaylists.ts | 254 +- src/sdk/models/operations/listsimilar.ts | 254 +- .../models/operations/listsonicallysimilar.ts | 254 +- src/sdk/models/operations/listtopusers.ts | 255 +- src/sdk/models/operations/makedecision.ts | 254 +- src/sdk/models/operations/markplayed.ts | 255 +- src/sdk/models/operations/matchitem.ts | 255 +- src/sdk/models/operations/mergeitems.ts | 255 +- src/sdk/models/operations/modifydevice.ts | 254 +- .../operations/modifyplaylistgenerator.ts | 254 +- .../models/operations/movecollectionitem.ts | 254 +- src/sdk/models/operations/movehub.ts | 254 +- src/sdk/models/operations/moveplaylistitem.ts | 254 +- .../models/operations/moveplayqueueitem.ts | 254 +- src/sdk/models/operations/optimizedatabase.ts | 254 +- .../models/operations/refreshitemsmetadata.ts | 254 +- src/sdk/models/operations/refreshplaylist.ts | 255 +- src/sdk/models/operations/refreshsection.ts | 254 +- .../operations/refreshsectionsmetadata.ts | 255 +- src/sdk/models/operations/reloadguide.ts | 255 +- src/sdk/models/operations/removedevice.ts | 255 +- .../models/operations/removedevicefromdvr.ts | 254 +- .../operations/removedownloadqueueitems.ts | 255 +- .../models/operations/reordersubscription.ts | 254 +- src/sdk/models/operations/report.ts | 254 +- src/sdk/models/operations/resetplayqueue.ts | 254 +- .../models/operations/resetsectiondefaults.ts | 255 +- .../restartprocessingdownloadqueueitems.ts | 263 +- src/sdk/models/operations/scan.ts | 254 +- src/sdk/models/operations/searchhubs.ts | 254 +- src/sdk/models/operations/setchannelmap.ts | 254 +- .../models/operations/setdevicepreferences.ts | 255 +- .../models/operations/setdvrpreferences.ts | 254 +- src/sdk/models/operations/setitemartwork.ts | 255 +- .../models/operations/setitempreferences.ts | 255 +- src/sdk/models/operations/setpreferences.ts | 255 +- src/sdk/models/operations/setrating.ts | 255 +- .../operations/setsectionpreferences.ts | 255 +- src/sdk/models/operations/setstreamoffset.ts | 255 +- .../models/operations/setstreamselection.ts | 254 +- src/sdk/models/operations/shuffle.ts | 254 +- src/sdk/models/operations/splititem.ts | 255 +- src/sdk/models/operations/startanalysis.ts | 255 +- .../models/operations/startbifgeneration.ts | 254 +- src/sdk/models/operations/starttask.ts | 255 +- .../operations/starttranscodesession.ts | 254 +- src/sdk/models/operations/stopdvrreload.ts | 255 +- src/sdk/models/operations/stopscan.ts | 254 +- src/sdk/models/operations/stoptask.ts | 255 +- src/sdk/models/operations/terminatesession.ts | 255 +- src/sdk/models/operations/transcodeimage.ts | 254 +- .../models/operations/transcodesubtitles.ts | 254 +- src/sdk/models/operations/triggerfallback.ts | 254 +- src/sdk/models/operations/tunechannel.ts | 254 +- src/sdk/models/operations/unmatch.ts | 255 +- src/sdk/models/operations/unscrobble.ts | 255 +- src/sdk/models/operations/unshuffle.ts | 254 +- .../models/operations/updatehubvisibility.ts | 254 +- .../models/operations/updateitemartwork.ts | 255 +- src/sdk/models/operations/updateitems.ts | 254 +- src/sdk/models/operations/updateplaylist.ts | 255 +- src/sdk/models/operations/uploadplaylist.ts | 254 +- src/sdk/models/operations/voicesearchhubs.ts | 254 +- src/sdk/models/operations/writemessage.ts | 255 +- src/sdk/models/shared/accepts.ts | 29 + src/sdk/models/shared/index.ts | 1 + src/sdk/models/shared/security.ts | 17 +- 923 files changed, 48209 insertions(+), 41897 deletions(-) create mode 100644 docs/sdk/models/shared/accepts.md delete mode 100644 examples/generalGetServerInfo.example.ts create mode 100644 examples/transcoderStartTranscodeSession.example.ts create mode 100644 src/sdk/models/shared/accepts.ts diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ee1cd268..936edda1 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: 6a5b4b24f1aa8b0f4b9e30c1d9acc3f5 + docChecksum: 2a6e4c8f6e1fedff5a37da76411f22df docVersion: 1.1.1 speakeasyVersion: 1.636.3 generationVersion: 2.723.11 - releaseVersion: 0.41.0 - configChecksum: d4b97562752f27158ff7bf3b9131f924 + releaseVersion: 0.42.0 + configChecksum: b8bda7eeb03f9b1af5ee6b6fbc93d821 repoURL: https://github.com/LukeHagar/plexjs.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexjs @@ -16,12 +16,14 @@ features: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 additionalProperties: 0.1.1 + constsAndDefaults: 0.1.12 core: 3.21.26 deepObjectParams: 0.1.0 defaultEnabledRetries: 0.1.0 downloadStreams: 0.1.1 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.2 + examples: 2.82.3 globalSecurity: 2.82.14 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 @@ -943,6 +945,7 @@ generatedFiles: - docs/sdk/models/operations/writemessagelevel.md - docs/sdk/models/operations/writemessagerequest.md - docs/sdk/models/operations/writemessageresponse.md + - docs/sdk/models/shared/accepts.md - docs/sdk/models/shared/advancedsubtitles.md - docs/sdk/models/shared/airingstype.md - docs/sdk/models/shared/boolint.md @@ -1079,8 +1082,8 @@ generatedFiles: - eslint.config.mjs - examples/.env.template - examples/README.md - - examples/generalGetServerInfo.example.ts - examples/package.json + - examples/transcoderStartTranscodeSession.example.ts - jsr.json - package.json - src/core.ts @@ -1601,6 +1604,7 @@ generatedFiles: - src/sdk/models/operations/voicesearchhubs.ts - src/sdk/models/operations/writelog.ts - src/sdk/models/operations/writemessage.ts + - src/sdk/models/shared/accepts.ts - src/sdk/models/shared/advancedsubtitles.ts - src/sdk/models/shared/boolint.ts - src/sdk/models/shared/channel.ts @@ -1782,6 +1786,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -2012,6 +2017,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -2034,6 +2040,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -2611,6 +2618,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"composite": "/playlists/96/composite/1705724593", "duration": 141000, "key": "/playlists/96/items", "leafCount": 1, "playlistType": "video", "smart": false, "title": "A Great Playlist", "type": "playlist", "addedAt": 1705719589, "lastViewedAt": 1705719589, "ratingKey": "96", "summary": "What a great playlist", "updatedAt": 1705724593, "viewCount": 1, "guid": "com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55", "icon": "playlist://image.smart"}]}} @@ -2644,6 +2652,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"composite": "/playlists/95/composite/1705717387", "duration": 282000, "key": "/playlists/95/items", "leafCount": 2, "playlistType": "video", "smart": true, "title": "Smart Movie Playlist", "type": "playlist", "addedAt": 1705716493, "ratingKey": "95", "summary": "", "updatedAt": 1705717387, "content": "library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1", "guid": "com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91", "icon": "playlist://image.smart"}]}} @@ -2668,6 +2677,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -2690,6 +2700,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -2752,6 +2763,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -2774,6 +2786,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -2798,6 +2811,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -3097,6 +3111,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "400": application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]} @@ -3163,6 +3178,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3185,6 +3201,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/octet-stream: "x-file: example.file" @@ -3202,6 +3219,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/octet-stream: "x-file: example.file" @@ -3226,6 +3244,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getPreference: speakeasy-default-get-preference: parameters: @@ -3240,6 +3259,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3261,6 +3281,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" report: speakeasy-default-report: parameters: @@ -3290,6 +3311,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"livetv": 7, "machineIdentifier": "0123456789abcdef0123456789abcdef012345678", "musicAnalysis": 2, "myPlexMappingState": "mapped", "myPlexSigninState": "ok", "offlineTranscode": 1}} @@ -3309,6 +3331,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" listActivities: speakeasy-default-list-activities: responses: @@ -3330,6 +3353,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" stopTasks: {} getTasks: speakeasy-default-get-tasks: @@ -3358,6 +3382,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3405,6 +3430,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3424,6 +3450,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3444,6 +3471,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -3464,6 +3492,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" removeDownloadQueueItems: speakeasy-default-remove-download-queue-items: parameters: @@ -3481,6 +3510,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getDownloadQueueItems: speakeasy-default-get-download-queue-items: parameters: @@ -3498,6 +3528,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3518,6 +3549,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getAllHubs: speakeasy-default-get-all-hubs: parameters: @@ -3534,6 +3566,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3551,6 +3584,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3570,6 +3604,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3587,6 +3622,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3608,6 +3644,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3629,6 +3666,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3650,6 +3688,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3671,6 +3710,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3690,6 +3730,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" listHubs: speakeasy-default-list-hubs: parameters: @@ -3706,6 +3747,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3730,6 +3772,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" moveHub: speakeasy-default-move-hub: parameters: @@ -3748,6 +3791,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3768,6 +3812,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" updateHubVisibility: speakeasy-default-update-hub-visibility: parameters: @@ -3789,6 +3834,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" searchHubs: speakeasy-default-search-hubs: parameters: @@ -3806,6 +3852,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3825,6 +3872,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -3842,6 +3890,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -3866,6 +3915,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -3887,6 +3937,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -3906,6 +3957,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getRandomArtwork: speakeasy-default-get-random-artwork: parameters: @@ -3922,6 +3974,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -3953,6 +4006,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Directory": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -3977,6 +4031,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"livetv": 7, "machineIdentifier": "0123456789abcdef0123456789abcdef012345678", "musicAnalysis": 2, "myPlexMappingState": "mapped", "myPlexSigninState": "ok", "offlineTranscode": 1}} @@ -3994,6 +4049,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getTags: speakeasy-default-get-tags: parameters: @@ -4008,6 +4064,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -4029,6 +4086,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" editMetadataItem: speakeasy-default-edit-metadata-item: parameters: @@ -4045,6 +4103,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" detectAds: speakeasy-default-detect-ads: parameters: @@ -4061,6 +4120,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getAllItemLeaves: speakeasy-default-get-all-item-leaves: parameters: @@ -4077,6 +4137,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4096,6 +4157,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" generateThumbs: speakeasy-default-generate-thumbs: parameters: @@ -4114,6 +4176,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" detectCredits: speakeasy-default-detect-credits: parameters: @@ -4133,6 +4196,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getExtras: speakeasy-default-get-extras: parameters: @@ -4149,6 +4213,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4170,6 +4235,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getFile: speakeasy-default-get-file: parameters: @@ -4186,6 +4252,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": audio/mpeg3: "x-file: example.file" @@ -4208,6 +4275,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" detectIntros: speakeasy-default-detect-intros: parameters: @@ -4226,6 +4294,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" createMarker: speakeasy-default-create-marker: parameters: @@ -4246,6 +4315,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -4265,6 +4335,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" listMatches: speakeasy-default-list-matches: parameters: @@ -4283,6 +4354,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4302,6 +4374,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" listSonicallySimilar: speakeasy-default-list-sonically-similar: parameters: @@ -4318,6 +4391,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4337,6 +4411,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" refreshItemsMetadata: speakeasy-default-refresh-items-metadata: parameters: @@ -4355,6 +4430,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getRelatedItems: speakeasy-default-get-related-items: parameters: @@ -4371,6 +4447,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Hub": [{"type": "track", "context": "hub.home.onDeck", "hubIdentifier": "home.onDeck", "key": "/hubs/sections/home/onDeck", "Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}], "size": 1, "subtype": "podcast", "totalSize": 8}]}} @@ -4390,6 +4467,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4409,6 +4487,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" addSubtitles: speakeasy-default-add-subtitles: parameters: @@ -4428,6 +4507,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getItemTree: speakeasy-default-get-item-tree: parameters: @@ -4444,6 +4524,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"MetadataItem": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "MetadataItem": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}]}} @@ -4463,6 +4544,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" listTopUsers: speakeasy-default-list-top-users: parameters: @@ -4479,6 +4561,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -4501,6 +4584,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getAugmentationStatus: speakeasy-default-get-augmentation-status: parameters: @@ -4519,6 +4603,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" setStreamSelection: speakeasy-default-set-stream-selection: parameters: @@ -4537,6 +4622,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getPerson: speakeasy-default-get-person: parameters: @@ -4553,6 +4639,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Directory": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}} @@ -4572,6 +4659,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4593,6 +4681,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getLibraryDetails: speakeasy-default-get-library-details: parameters: @@ -4611,6 +4700,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Directory": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4634,6 +4724,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" updateItems: speakeasy-default-update-items: parameters: @@ -4652,6 +4743,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" startAnalysis: speakeasy-default-start-analysis: parameters: @@ -4668,6 +4760,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" autocomplete: speakeasy-default-autocomplete: parameters: @@ -4684,6 +4777,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4703,6 +4797,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4722,6 +4817,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -4741,6 +4837,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getSectionFilters: speakeasy-default-get-section-filters: parameters: @@ -4757,6 +4854,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -4776,6 +4874,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -4795,6 +4894,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" deleteIntros: speakeasy-default-delete-intros: parameters: @@ -4811,6 +4911,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getSectionPreferences: speakeasy-default-get-section-preferences: parameters: @@ -4827,6 +4928,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -4848,6 +4950,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" cancelRefresh: speakeasy-default-cancel-refresh: parameters: @@ -4864,6 +4967,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" refreshSection: speakeasy-default-refresh-section: parameters: @@ -4882,6 +4986,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getAvailableSorts: speakeasy-default-get-available-sorts: parameters: @@ -4898,6 +5003,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -4917,6 +5023,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -4936,6 +5043,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": text/plain: "" @@ -4956,6 +5064,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": image/jpeg: "x-file: example.file" @@ -4976,6 +5085,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" updateItemArtwork: speakeasy-default-update-item-artwork: parameters: @@ -4993,6 +5103,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" deleteMarker: speakeasy-default-delete-marker: parameters: @@ -5010,6 +5121,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" editMarker: speakeasy-default-edit-marker: parameters: @@ -5031,6 +5143,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5053,6 +5166,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getPartIndex: speakeasy-default-get-part-index: parameters: @@ -5070,6 +5184,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/octet-stream: "x-file: example.file" @@ -5090,6 +5205,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getSectionImage: speakeasy-default-get-section-image: parameters: @@ -5107,6 +5223,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" deleteStream: speakeasy-default-delete-stream: parameters: @@ -5124,6 +5241,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getStream: speakeasy-default-get-stream: parameters: @@ -5143,6 +5261,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" setStreamOffset: speakeasy-default-set-stream-offset: parameters: @@ -5160,6 +5279,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getItemArtwork: speakeasy-default-get-item-artwork: parameters: @@ -5178,6 +5298,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": audio/mpeg3: "x-file: example.file" @@ -5202,6 +5323,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getImageFromBif: speakeasy-default-get-image-from-bif: parameters: @@ -5220,6 +5342,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": image/jpeg: "x-file: example.file" @@ -5239,6 +5362,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -5265,6 +5389,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5284,6 +5409,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getDVR: speakeasy-default-get-DVR: parameters: @@ -5300,6 +5426,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5321,6 +5448,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5342,6 +5470,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5361,6 +5490,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5380,6 +5510,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" reloadGuide: speakeasy-default-reload-guide: parameters: @@ -5396,6 +5527,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" tuneChannel: speakeasy-default-tune-channel: parameters: @@ -5413,6 +5545,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -5433,6 +5566,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5453,6 +5587,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5473,6 +5608,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5492,6 +5628,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5522,6 +5659,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getLineupChannels: speakeasy-default-get-lineup-channels: parameters: @@ -5538,6 +5676,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5558,6 +5697,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5578,6 +5718,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5599,6 +5740,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5618,6 +5760,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -5638,6 +5781,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getSessionSegment: speakeasy-default-get-session-segment: parameters: @@ -5656,6 +5800,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" writeLog: speakeasy-default-write-log: requestBody: @@ -5674,6 +5819,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" enablePapertrail: speakeasy-default-enable-papertrail: parameters: @@ -5688,6 +5834,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getAvailableGrabbers: speakeasy-default-get-available-grabbers: parameters: @@ -5704,6 +5851,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5728,6 +5876,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5752,6 +5901,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5771,6 +5921,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5792,6 +5943,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5815,6 +5967,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5834,6 +5987,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5853,6 +6007,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" stopScan: speakeasy-default-stop-scan: parameters: @@ -5869,6 +6024,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5890,6 +6046,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -5910,6 +6067,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" listProviders: speakeasy-default-list-providers: responses: @@ -5931,6 +6089,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" refreshProviders: {} deleteMediaProvider: speakeasy-default-delete-media-provider: @@ -5948,6 +6107,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getAllSubscriptions: speakeasy-default-get-all-subscriptions: parameters: @@ -5965,6 +6125,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"MediaSubscription": [{"MediaGrabOperation": [{"Metadata": {"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} @@ -5989,6 +6150,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"MediaSubscription": [{"MediaGrabOperation": [{"Metadata": {"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} @@ -6014,6 +6176,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"SubscriptionTemplate": [{"MediaSubscription": [{"title": "This Episode", "MediaGrabOperation": [{"Metadata": {"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}]}} @@ -6033,6 +6196,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" deleteSubscription: speakeasy-default-delete-subscription: parameters: @@ -6049,6 +6213,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getSubscription: speakeasy-default-get-subscription: parameters: @@ -6068,6 +6233,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"MediaSubscription": [{"MediaGrabOperation": [{"Metadata": {"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} @@ -6089,6 +6255,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"MediaSubscription": [{"MediaGrabOperation": [{"Metadata": {"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} @@ -6108,6 +6275,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"MediaSubscription": [{"MediaGrabOperation": [{"Metadata": {"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}]}]}} @@ -6132,6 +6300,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": image/jpeg: "x-file: example.file" @@ -6182,6 +6351,7 @@ examples: X-Plex-Marketplace: "googlePlay" X-Plex-Client-Profile-Extra: "add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.frameRate&value=60&replace=true)+append-transcode-target-codec(type=videoProfile&context=streaming&videoCodec=h264%2Chevc&audioCodec=aac&protocol=dash)" X-Plex-Client-Profile-Name: "generic" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6201,6 +6371,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" transcodeSubtitles: speakeasy-default-transcode-subtitles: parameters: @@ -6246,6 +6417,7 @@ examples: X-Plex-Marketplace: "googlePlay" X-Plex-Client-Profile-Extra: "add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.frameRate&value=60&replace=true)+append-transcode-target-codec(type=videoProfile&context=streaming&videoCodec=h264%2Chevc&audioCodec=aac&protocol=dash)" X-Plex-Client-Profile-Name: "generic" + accepts: "application/xml" startTranscodeSession: speakeasy-default-start-transcode-session: parameters: @@ -6292,6 +6464,7 @@ examples: X-Plex-Marketplace: "googlePlay" X-Plex-Client-Profile-Extra: "add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.frameRate&value=60&replace=true)+append-transcode-target-codec(type=videoProfile&context=streaming&videoCodec=h264%2Chevc&audioCodec=aac&protocol=dash)" X-Plex-Client-Profile-Name: "generic" + accepts: "application/xml" responses: "200": video/x-matroska: "x-file: example.file" @@ -6309,6 +6482,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6328,6 +6502,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6347,6 +6522,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -6366,6 +6542,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6385,6 +6562,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6405,6 +6583,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6425,6 +6604,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -6447,6 +6627,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6467,6 +6648,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": {"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}}} @@ -6487,6 +6669,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6509,6 +6692,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" createPlayQueue: speakeasy-default-create-play-queue: parameters: @@ -6530,6 +6714,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -6553,6 +6738,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6574,6 +6760,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6593,6 +6780,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6612,6 +6800,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6631,6 +6820,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6650,6 +6840,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6670,6 +6861,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6690,6 +6882,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6709,6 +6902,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -6734,6 +6928,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": image/png: "x-file: example.file" @@ -6763,6 +6958,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -6783,6 +6979,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" deleteHistory: speakeasy-default-delete-history: parameters: @@ -6799,6 +6996,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -6818,6 +7016,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -6837,6 +7036,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" getUpdatesStatus: speakeasy-default-get-updates-status: responses: @@ -6858,6 +7058,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6886,6 +7087,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6905,6 +7107,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6924,6 +7127,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6943,6 +7147,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -6962,6 +7167,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -6981,6 +7187,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -7000,6 +7207,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -7022,6 +7230,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -7041,6 +7250,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -7060,6 +7270,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {} @@ -7081,6 +7292,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -7101,6 +7313,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": image/jpeg: "x-file: example.file" @@ -7122,6 +7335,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -7142,6 +7356,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -7162,6 +7377,7 @@ examples: X-Plex-Device-Vendor: "Roku" X-Plex-Device-Name: "Living Room TV" X-Plex-Marketplace: "googlePlay" + accepts: "application/xml" responses: "200": application/json: {"MediaContainer": {"Metadata": [{"Autotag": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Country": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Director": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Genre": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Guid": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Media": [{"aspectRatio": 2.35, "audioChannels": 2, "audioCodec": "aac", "audioProfile": "lc", "bitrate": 5612, "container": "mov", "duration": 150192, "has64bitOffsets": false, "hasVoiceActivity": true, "height": 544, "id": 1, "optimizedForStreaming": false, "Part": [{"audioProfile": "lc", "container": "mov", "duration": 150192, "file": "/home/schuyler/Videos/Trailers/Cloud Atlas (2012).mov", "has64bitOffsets": false, "id": 1, "key": "/library/parts/1/1531779263/file.mov", "optimizedForStreaming": false, "size": 105355654, "Stream": [{"default": true, "audioChannelLayout": "stereo", "bitDepth": 8, "bitrate": 5466, "canAutoSync": true, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codec": "h264", "colorPrimaries": "bt709", "colorRange": "tv", "colorSpace": "bt709", "colorTrc": "bt709", "displayTitle": "English (H.264 Main)", "frameRate": 23.976, "hasScalingMatrix": false, "height": 544, "id": 1, "index": 0, "key": "/library/streams/1", "language": "English", "languageCode": "eng", "level": 31, "profile": "main", "refFrames": 2, "samplingRate": 48000, "streamIdentifier": 1, "streamType": 1, "width": 1280}], "videoProfile": "main"}], "videoCodec": "h264", "videoFrameRate": "24p", "videoProfile": "main", "videoResolution": "720", "width": 1280}], "Rating": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Role": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}], "Writer": [{"filter": "actor=49", "role": "Secretary", "tag": "Shaun Lawton", "tagKey": "5d3ee12c4cde6a001c3e0b27", "thumb": "http://image.tmdb.org/t/p/original/lcJ8qM51ClAR2UzXU1mkZGfnn3o.jpg"}]}]}} @@ -7324,4 +7540,217 @@ generatedTests: addCollectionItems: "2025-10-12T05:25:28Z" deleteCollectionItem: "2025-10-12T05:25:28Z" moveCollectionItem: "2025-10-12T05:25:28Z" -releaseNotes: "## Typescript SDK Changes Detected:\n* `plex-api.butler.startTask()`: \n * `request` **Changed** **Breaking** :warning:\n * `error` **Changed** **Breaking** :warning:\n* `plex-api.butler.stopTask()`: \n * `request` **Changed** **Breaking** :warning:\n * `error` **Changed** **Breaking** :warning:\n* `plex-api.updater.applyUpdates()`: \n * `request` **Changed** **Breaking** :warning:\n * `error` **Changed** **Breaking** :warning:\n* `plex-api.general.getServerInfo()`: **Added**\n* `plex-api.general.getIdentity()`: **Added**\n* `plex-api.general.getSourceConnectionInformation()`: **Added**\n* `plex-api.general.getTransientToken()`: **Added**\n* `plex-api.events.getNotifications()`: **Added**\n* `plex-api.events.connectWebSocket()`: **Added**\n* `plex-api.preferences.getAllPreferences()`: **Added**\n* `plex-api.preferences.setPreferences()`: **Added**\n* `plex-api.preferences.getPreference()`: **Added**\n* `plex-api.rate.setRating()`: **Added**\n* `plex-api.timeline.markPlayed()`: **Added**\n* `plex-api.timeline.report()`: **Added**\n* `plex-api.timeline.unscrobble()`: **Added**\n* `plex-api.activities.listActivities()`: **Added**\n* `plex-api.activities.cancelActivity()`: **Added**\n* `plex-api.butler.stopTasks()`: **Added**\n* `plex-api.butler.getTasks()`: **Added**\n* `plex-api.butler.startTasks()`: **Added**\n* `plex-api.downloadQueue.createDownloadQueue()`: **Added**\n* `plex-api.downloadQueue.getDownloadQueue()`: **Added**\n* `plex-api.downloadQueue.addDownloadQueueItems()`: **Added**\n* `plex-api.downloadQueue.listDownloadQueueItems()`: **Added**\n* `plex-api.downloadQueue.getItemDecision()`: **Added**\n* `plex-api.downloadQueue.getDownloadQueueMedia()`: **Added**\n* `plex-api.downloadQueue.removeDownloadQueueItems()`: **Added**\n* `plex-api.downloadQueue.getDownloadQueueItems()`: **Added**\n* `plex-api.downloadQueue.restartProcessingDownloadQueueItems()`: **Added**\n* `plex-api.hubs.getAllHubs()`: **Added**\n* `plex-api.hubs.getContinueWatching()`: **Added**\n* `plex-api.hubs.getHubItems()`: **Added**\n* `plex-api.hubs.getPromotedHubs()`: **Added**\n* `plex-api.hubs.getMetadataHubs()`: **Added**\n* `plex-api.hubs.getPostplayHubs()`: **Added**\n* `plex-api.hubs.getRelatedHubs()`: **Added**\n* `plex-api.hubs.getSectionHubs()`: **Added**\n* `plex-api.hubs.resetSectionDefaults()`: **Added**\n* `plex-api.hubs.listHubs()`: **Added**\n* `plex-api.hubs.createCustomHub()`: **Added**\n* `plex-api.hubs.moveHub()`: **Added**\n* `plex-api.hubs.deleteCustomHub()`: **Added**\n* `plex-api.hubs.updateHubVisibility()`: **Added**\n* `plex-api.search.searchHubs()`: **Added**\n* `plex-api.search.voiceSearchHubs()`: **Added**\n* `plex-api.library.getLibraryItems()`: **Added**\n* `plex-api.library.deleteCaches()`: **Added**\n* `plex-api.library.cleanBundles()`: **Added**\n* `plex-api.library.ingestTransientItem()`: **Added**\n* `plex-api.library.getLibraryMatches()`: **Added**\n* `plex-api.library.optimizeDatabase()`: **Added**\n* `plex-api.library.getRandomArtwork()`: **Added**\n* `plex-api.library.getSections()`: **Added**\n* `plex-api.library.addSection()`: **Added**\n* `plex-api.library.stopAllRefreshes()`: **Added**\n* `plex-api.library.getSectionsPrefs()`: **Added**\n* `plex-api.library.refreshSectionsMetadata()`: **Added**\n* `plex-api.library.getTags()`: **Added**\n* `plex-api.library.deleteMetadataItem()`: **Added**\n* `plex-api.library.editMetadataItem()`: **Added**\n* `plex-api.library.detectAds()`: **Added**\n* `plex-api.library.getAllItemLeaves()`: **Added**\n* `plex-api.library.analyzeMetadata()`: **Added**\n* `plex-api.library.generateThumbs()`: **Added**\n* `plex-api.library.detectCredits()`: **Added**\n* `plex-api.library.getExtras()`: **Added**\n* `plex-api.library.addExtras()`: **Added**\n* `plex-api.library.getFile()`: **Added**\n* `plex-api.library.startBifGeneration()`: **Added**\n* `plex-api.library.detectIntros()`: **Added**\n* `plex-api.library.createMarker()`: **Added**\n* `plex-api.library.matchItem()`: **Added**\n* `plex-api.library.listMatches()`: **Added**\n* `plex-api.library.mergeItems()`: **Added**\n* `plex-api.library.listSonicallySimilar()`: **Added**\n* `plex-api.library.setItemPreferences()`: **Added**\n* `plex-api.library.refreshItemsMetadata()`: **Added**\n* `plex-api.library.getRelatedItems()`: **Added**\n* `plex-api.library.listSimilar()`: **Added**\n* `plex-api.library.splitItem()`: **Added**\n* `plex-api.library.addSubtitles()`: **Added**\n* `plex-api.library.getItemTree()`: **Added**\n* `plex-api.library.unmatch()`: **Added**\n* `plex-api.library.listTopUsers()`: **Added**\n* `plex-api.library.detectVoiceActivity()`: **Added**\n* `plex-api.library.getAugmentationStatus()`: **Added**\n* `plex-api.library.setStreamSelection()`: **Added**\n* `plex-api.library.getPerson()`: **Added**\n* `plex-api.library.listPersonMedia()`: **Added**\n* `plex-api.library.deleteLibrarySection()`: **Added**\n* `plex-api.library.getLibraryDetails()`: **Added**\n* `plex-api.library.editSection()`: **Added**\n* `plex-api.library.updateItems()`: **Added**\n* `plex-api.library.startAnalysis()`: **Added**\n* `plex-api.library.autocomplete()`: **Added**\n* `plex-api.library.getCollections()`: **Added**\n* `plex-api.library.getCommon()`: **Added**\n* `plex-api.library.emptyTrash()`: **Added**\n* `plex-api.library.getSectionFilters()`: **Added**\n* `plex-api.library.getFirstCharacters()`: **Added**\n* `plex-api.library.deleteIndexes()`: **Added**\n* `plex-api.library.deleteIntros()`: **Added**\n* `plex-api.library.getSectionPreferences()`: **Added**\n* `plex-api.library.setSectionPreferences()`: **Added**\n* `plex-api.library.cancelRefresh()`: **Added**\n* `plex-api.library.refreshSection()`: **Added**\n* `plex-api.library.getAvailableSorts()`: **Added**\n* `plex-api.library.getStreamLevels()`: **Added**\n* `plex-api.library.getStreamLoudness()`: **Added**\n* `plex-api.library.getChapterImage()`: **Added**\n* `plex-api.library.setItemArtwork()`: **Added**\n* `plex-api.library.updateItemArtwork()`: **Added**\n* `plex-api.library.deleteMarker()`: **Added**\n* `plex-api.library.editMarker()`: **Added**\n* `plex-api.library.deleteMediaItem()`: **Added**\n* `plex-api.library.getPartIndex()`: **Added**\n* `plex-api.library.deleteCollection()`: **Added**\n* `plex-api.library.getSectionImage()`: **Added**\n* `plex-api.library.deleteStream()`: **Added**\n* `plex-api.library.getStream()`: **Added**\n* `plex-api.library.setStreamOffset()`: **Added**\n* `plex-api.library.getItemArtwork()`: **Added**\n* `plex-api.library.getMediaPart()`: **Added**\n* `plex-api.library.getImageFromBif()`: **Added**\n* `plex-api.collections.createCollection()`: **Added**\n* `plex-api.dvRs.listDvRs()`: **Added**\n* `plex-api.dvRs.createDvr()`: **Added**\n* `plex-api.dvRs.deleteDvr()`: **Added**\n* `plex-api.dvRs.getDvr()`: **Added**\n* `plex-api.dvRs.deleteLineup()`: **Added**\n* `plex-api.dvRs.addLineup()`: **Added**\n* `plex-api.dvRs.setDvrPreferences()`: **Added**\n* `plex-api.dvRs.stopDvrReload()`: **Added**\n* `plex-api.dvRs.reloadGuide()`: **Added**\n* `plex-api.dvRs.tuneChannel()`: **Added**\n* `plex-api.dvRs.removeDeviceFromDvr()`: **Added**\n* `plex-api.dvRs.addDeviceToDvr()`: **Added**\n* `plex-api.epg.computeChannelMap()`: **Added**\n* `plex-api.epg.getChannels()`: **Added**\n* `plex-api.epg.getCountries()`: **Added**\n* `plex-api.epg.getAllLanguages()`: **Added**\n* `plex-api.epg.getLineup()`: **Added**\n* `plex-api.epg.getLineupChannels()`: **Added**\n* `plex-api.epg.getCountriesLineups()`: **Added**\n* `plex-api.epg.getCountryRegions()`: **Added**\n* `plex-api.epg.listLineups()`: **Added**\n* `plex-api.liveTv.getSessions()`: **Added**\n* `plex-api.liveTv.getLiveTvSession()`: **Added**\n* `plex-api.liveTv.getSessionPlaylistIndex()`: **Added**\n* `plex-api.liveTv.getSessionSegment()`: **Added**\n* `plex-api.log.writeLog()`: **Added**\n* `plex-api.log.writeMessage()`: **Added**\n* `plex-api.log.enablePapertrail()`: **Added**\n* `plex-api.devices.getAvailableGrabbers()`: **Added**\n* `plex-api.devices.listDevices()`: **Added**\n* `plex-api.devices.addDevice()`: **Added**\n* `plex-api.devices.discoverDevices()`: **Added**\n* `plex-api.devices.removeDevice()`: **Added**\n* `plex-api.devices.getDeviceDetails()`: **Added**\n* `plex-api.devices.modifyDevice()`: **Added**\n* `plex-api.devices.setChannelmap()`: **Added**\n* `plex-api.devices.getDevicesChannels()`: **Added**\n* `plex-api.devices.setDevicePreferences()`: **Added**\n* `plex-api.devices.stopScan()`: **Added**\n* `plex-api.devices.scan()`: **Added**\n* `plex-api.devices.getThumb()`: **Added**\n* `plex-api.provider.listProviders()`: **Added**\n* `plex-api.provider.addProvider()`: **Added**\n* `plex-api.provider.refreshProviders()`: **Added**\n* `plex-api.provider.deleteMediaProvider()`: **Added**\n* `plex-api.subscriptions.getAllSubscriptions()`: **Added**\n* `plex-api.subscriptions.createSubscription()`: **Added**\n* `plex-api.subscriptions.processSubscriptions()`: **Added**\n* `plex-api.subscriptions.getScheduledRecordings()`: **Added**\n* `plex-api.subscriptions.getTemplate()`: **Added**\n* `plex-api.subscriptions.cancelGrab()`: **Added**\n* `plex-api.subscriptions.deleteSubscription()`: **Added**\n* `plex-api.subscriptions.getSubscription()`: **Added**\n* `plex-api.subscriptions.editSubscriptionPreferences()`: **Added**\n* `plex-api.subscriptions.reorderSubscription()`: **Added**\n* `plex-api.transcoder.transcodeImage()`: **Added**\n* `plex-api.transcoder.makeDecision()`: **Added**\n* `plex-api.transcoder.triggerFallback()`: **Added**\n* `plex-api.transcoder.transcodeSubtitles()`: **Added**\n* `plex-api.transcoder.startTranscodeSession()`: **Added**\n* `plex-api.playlist.listPlaylists()`: **Added**\n* `plex-api.playlist.getPlaylist()`: **Added**\n* `plex-api.playlist.getPlaylistItems()`: **Added**\n* `plex-api.libraryPlaylists.createPlaylist()`: **Added**\n* `plex-api.libraryPlaylists.uploadPlaylist()`: **Added**\n* `plex-api.libraryPlaylists.deletePlaylist()`: **Added**\n* `plex-api.libraryPlaylists.updatePlaylist()`: **Added**\n* `plex-api.libraryPlaylists.getPlaylistGenerators()`: **Added**\n* `plex-api.libraryPlaylists.clearPlaylistItems()`: **Added**\n* `plex-api.libraryPlaylists.addPlaylistItems()`: **Added**\n* `plex-api.libraryPlaylists.deletePlaylistItem()`: **Added**\n* `plex-api.libraryPlaylists.getPlaylistGenerator()`: **Added**\n* `plex-api.libraryPlaylists.modifyPlaylistGenerator()`: **Added**\n* `plex-api.libraryPlaylists.getPlaylistGeneratorItems()`: **Added**\n* `plex-api.libraryPlaylists.movePlaylistItem()`: **Added**\n* `plex-api.libraryPlaylists.refreshPlaylist()`: **Added**\n* `plex-api.playQueue.createPlayQueue()`: **Added**\n* `plex-api.playQueue.getPlayQueue()`: **Added**\n* `plex-api.playQueue.addToPlayQueue()`: **Added**\n* `plex-api.playQueue.clearPlayQueue()`: **Added**\n* `plex-api.playQueue.resetPlayQueue()`: **Added**\n* `plex-api.playQueue.shuffle()`: **Added**\n* `plex-api.playQueue.unshuffle()`: **Added**\n* `plex-api.playQueue.deletePlayQueueItem()`: **Added**\n* `plex-api.playQueue.movePlayQueueItem()`: **Added**\n* `plex-api.ultraBlur.getColors()`: **Added**\n* `plex-api.ultraBlur.getImage()`: **Added**\n* `plex-api.status.listSessions()`: **Added**\n* `plex-api.status.getBackgroundTasks()`: **Added**\n* `plex-api.status.listPlaybackHistory()`: **Added**\n* `plex-api.status.terminateSession()`: **Added**\n* `plex-api.status.deleteHistory()`: **Added**\n* `plex-api.status.getHistoryItem()`: **Added**\n* `plex-api.updater.checkUpdates()`: **Added**\n* `plex-api.updater.getUpdatesStatus()`: **Added**\n* `plex-api.content.getCollectionItems()`: **Added**\n* `plex-api.content.getMetadataItem()`: **Added**\n* `plex-api.content.getAlbums()`: **Added**\n* `plex-api.content.listContent()`: **Added**\n* `plex-api.content.getAllLeaves()`: **Added**\n* `plex-api.content.getArts()`: **Added**\n* `plex-api.content.getCategories()`: **Added**\n* `plex-api.content.getCluster()`: **Added**\n* `plex-api.content.getSonicPath()`: **Added**\n* `plex-api.content.getFolders()`: **Added**\n* `plex-api.content.listMoments()`: **Added**\n* `plex-api.content.getSonicallySimilar()`: **Added**\n* `plex-api.content.getCollectionImage()`: **Added**\n* `plex-api.libraryCollections.addCollectionItems()`: **Added**\n* `plex-api.libraryCollections.deleteCollectionItem()`: **Added**\n* `plex-api.libraryCollections.moveCollectionItem()`: **Added**\n* `plex-api.server.getServerCapabilities()`: **Deleted** **Breaking** :warning:\n* `plex-api.server.getServerPreferences()`: **Deleted** **Breaking** :warning:\n* `plex-api.server.getAvailableClients()`: **Deleted** **Breaking** :warning:\n* `plex-api.server.getDevices()`: **Deleted** **Breaking** :warning:\n* `plex-api.server.getServerIdentity()`: **Deleted** **Breaking** :warning:\n* `plex-api.server.getMyPlexAccount()`: **Deleted** **Breaking** :warning:\n* `plex-api.server.getResizedPhoto()`: **Deleted** **Breaking** :warning:\n* `plex-api.server.getMediaProviders()`: **Deleted** **Breaking** :warning:\n* `plex-api.server.getServerList()`: **Deleted** **Breaking** :warning:\n* `plex-api.media.markPlayed()`: **Deleted** **Breaking** :warning:\n* `plex-api.media.markUnplayed()`: **Deleted** **Breaking** :warning:\n* `plex-api.media.updatePlayProgress()`: **Deleted** **Breaking** :warning:\n* `plex-api.media.getBannerImage()`: **Deleted** **Breaking** :warning:\n* `plex-api.media.getThumbImage()`: **Deleted** **Breaking** :warning:\n* `plex-api.video.getTimeline()`: **Deleted** **Breaking** :warning:\n* `plex-api.video.startUniversalTranscode()`: **Deleted** **Breaking** :warning:\n* `plex-api.activities.getServerActivities()`: **Deleted** **Breaking** :warning:\n* `plex-api.activities.cancelServerActivities()`: **Deleted** **Breaking** :warning:\n* `plex-api.butler.getButlerTasks()`: **Deleted** **Breaking** :warning:\n* `plex-api.butler.startAllTasks()`: **Deleted** **Breaking** :warning:\n* `plex-api.butler.stopAllTasks()`: **Deleted** **Breaking** :warning:\n* `plex-api.plex.getCompanionsData()`: **Deleted** **Breaking** :warning:\n* `plex-api.plex.getUserFriends()`: **Deleted** **Breaking** :warning:\n* `plex-api.plex.getGeoData()`: **Deleted** **Breaking** :warning:\n* `plex-api.plex.getHomeData()`: **Deleted** **Breaking** :warning:\n* `plex-api.plex.getServerResources()`: **Deleted** **Breaking** :warning:\n* `plex-api.plex.getPin()`: **Deleted** **Breaking** :warning:\n* `plex-api.plex.getTokenByPinId()`: **Deleted** **Breaking** :warning:\n* `plex-api.hubs.getGlobalHubs()`: **Deleted** **Breaking** :warning:\n* `plex-api.hubs.getRecentlyAdded()`: **Deleted** **Breaking** :warning:\n* `plex-api.hubs.getLibraryHubs()`: **Deleted** **Breaking** :warning:\n* `plex-api.search.performSearch()`: **Deleted** **Breaking** :warning:\n* `plex-api.search.performVoiceSearch()`: **Deleted** **Breaking** :warning:\n* `plex-api.search.getSearchResults()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getFileHash()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getRecentlyAddedLibrary()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getAllLibraries()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getLibraryDetails()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.deleteLibrary()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getLibraryItems()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getLibrarySectionsAll()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getRefreshLibraryMetadata()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getSearchLibrary()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getGenresLibrary()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getCountriesLibrary()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getActorsLibrary()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getSearchAllLibraries()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getMediaMetaData()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getMediaArts()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.postMediaArts()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getMediaPosters()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.postMediaPoster()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getMetadataChildren()`: **Deleted** **Breaking** :warning:\n* `plex-api.library.getTopWatchedContent()`: **Deleted** **Breaking** :warning:\n* `plex-api.watchlist.getWatchList()`: **Deleted** **Breaking** :warning:\n* `plex-api.log.logLine()`: **Deleted** **Breaking** :warning:\n* `plex-api.log.logMultiLine()`: **Deleted** **Breaking** :warning:\n* `plex-api.log.enablePaperTrail()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.createPlaylist()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.getPlaylists()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.getPlaylist()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.deletePlaylist()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.updatePlaylist()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.getPlaylistContents()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.clearPlaylistContents()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.addPlaylistContents()`: **Deleted** **Breaking** :warning:\n* `plex-api.playlists.uploadPlaylist()`: **Deleted** **Breaking** :warning:\n* `plex-api.authentication.getTransientToken()`: **Deleted** **Breaking** :warning:\n* `plex-api.authentication.getSourceConnectionInformation()`: **Deleted** **Breaking** :warning:\n* `plex-api.authentication.getTokenDetails()`: **Deleted** **Breaking** :warning:\n* `plex-api.authentication.postUsersSignInData()`: **Deleted** **Breaking** :warning:\n* `plex-api.statistics.getStatistics()`: **Deleted** **Breaking** :warning:\n* `plex-api.statistics.getResourcesStatistics()`: **Deleted** **Breaking** :warning:\n* `plex-api.statistics.getBandwidthStatistics()`: **Deleted** **Breaking** :warning:\n* `plex-api.sessions.getSessions()`: **Deleted** **Breaking** :warning:\n* `plex-api.sessions.getSessionHistory()`: **Deleted** **Breaking** :warning:\n* `plex-api.sessions.getTranscodeSessions()`: **Deleted** **Breaking** :warning:\n* `plex-api.sessions.stopTranscodeSession()`: **Deleted** **Breaking** :warning:\n* `plex-api.updater.getUpdateStatus()`: **Deleted** **Breaking** :warning:\n* `plex-api.updater.checkForUpdates()`: **Deleted** **Breaking** :warning:\n* `plex-api.users.getUsers()`: **Deleted** **Breaking** :warning:\n" +releaseNotes: | + ## Typescript SDK Changes Detected: + * `plex-api.general.getServerInfo()`: `request` **Changed** **Breaking** :warning: + * `plex-api.general.getSourceConnectionInformation()`: `request` **Changed** **Breaking** :warning: + * `plex-api.general.getTransientToken()`: `request` **Changed** **Breaking** :warning: + * `plex-api.events.getNotifications()`: `request` **Changed** **Breaking** :warning: + * `plex-api.events.connectWebSocket()`: `request` **Changed** **Breaking** :warning: + * `plex-api.preferences.setPreferences()`: `request` **Changed** **Breaking** :warning: + * `plex-api.preferences.getPreference()`: `request` **Changed** **Breaking** :warning: + * `plex-api.rate.setRating()`: `request` **Changed** **Breaking** :warning: + * `plex-api.timeline.markPlayed()`: `request` **Changed** **Breaking** :warning: + * `plex-api.timeline.report()`: `request` **Changed** **Breaking** :warning: + * `plex-api.timeline.unscrobble()`: `request` **Changed** **Breaking** :warning: + * `plex-api.activities.cancelActivity()`: `request` **Changed** **Breaking** :warning: + * `plex-api.butler.stopTask()`: `request` **Changed** **Breaking** :warning: + * `plex-api.butler.startTask()`: `request` **Changed** **Breaking** :warning: + * `plex-api.downloadQueue.getDownloadQueue()`: `request` **Changed** **Breaking** :warning: + * `plex-api.downloadQueue.addDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.downloadQueue.listDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.downloadQueue.getItemDecision()`: `request` **Changed** **Breaking** :warning: + * `plex-api.downloadQueue.getDownloadQueueMedia()`: `request` **Changed** **Breaking** :warning: + * `plex-api.downloadQueue.removeDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.downloadQueue.getDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.downloadQueue.restartProcessingDownloadQueueItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.getAllHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.getContinueWatching()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.getHubItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.getPromotedHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.getMetadataHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.getPostplayHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.getRelatedHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.getSectionHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.resetSectionDefaults()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.listHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.createCustomHub()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.moveHub()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.deleteCustomHub()`: `request` **Changed** **Breaking** :warning: + * `plex-api.hubs.updateHubVisibility()`: `request` **Changed** **Breaking** :warning: + * `plex-api.search.searchHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.search.voiceSearchHubs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getLibraryItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.ingestTransientItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getLibraryMatches()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.optimizeDatabase()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getRandomArtwork()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.addSection()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getSectionsPrefs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.refreshSectionsMetadata()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getTags()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.deleteMetadataItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.editMetadataItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.detectAds()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getAllItemLeaves()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.analyzeMetadata()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.generateThumbs()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.detectCredits()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getExtras()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.addExtras()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getFile()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.startBifGeneration()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.detectIntros()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.createMarker()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.matchItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.listMatches()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.mergeItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.listSonicallySimilar()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.setItemPreferences()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.refreshItemsMetadata()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getRelatedItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.listSimilar()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.splitItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.addSubtitles()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getItemTree()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.unmatch()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.listTopUsers()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.detectVoiceActivity()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getAugmentationStatus()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.setStreamSelection()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getPerson()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.listPersonMedia()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.deleteLibrarySection()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getLibraryDetails()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.editSection()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.updateItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.startAnalysis()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.autocomplete()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getCollections()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getCommon()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.emptyTrash()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getSectionFilters()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getFirstCharacters()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.deleteIndexes()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.deleteIntros()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getSectionPreferences()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.setSectionPreferences()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.cancelRefresh()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.refreshSection()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getAvailableSorts()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getStreamLevels()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getStreamLoudness()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getChapterImage()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.setItemArtwork()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.updateItemArtwork()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.deleteMarker()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.editMarker()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.deleteMediaItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getPartIndex()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.deleteCollection()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getSectionImage()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.deleteStream()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getStream()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.setStreamOffset()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getItemArtwork()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getMediaPart()`: `request` **Changed** **Breaking** :warning: + * `plex-api.library.getImageFromBif()`: `request` **Changed** **Breaking** :warning: + * `plex-api.collections.createCollection()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.createDvr()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.deleteDvr()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.getDvr()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.deleteLineup()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.addLineup()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.setDvrPreferences()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.stopDvrReload()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.reloadGuide()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.tuneChannel()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.removeDeviceFromDvr()`: `request` **Changed** **Breaking** :warning: + * `plex-api.dvRs.addDeviceToDvr()`: `request` **Changed** **Breaking** :warning: + * `plex-api.epg.computeChannelMap()`: `request` **Changed** **Breaking** :warning: + * `plex-api.epg.getChannels()`: `request` **Changed** **Breaking** :warning: + * `plex-api.epg.getLineup()`: `request` **Changed** **Breaking** :warning: + * `plex-api.epg.getLineupChannels()`: `request` **Changed** **Breaking** :warning: + * `plex-api.epg.getCountriesLineups()`: `request` **Changed** **Breaking** :warning: + * `plex-api.epg.getCountryRegions()`: `request` **Changed** **Breaking** :warning: + * `plex-api.epg.listLineups()`: `request` **Changed** **Breaking** :warning: + * `plex-api.liveTv.getLiveTvSession()`: `request` **Changed** **Breaking** :warning: + * `plex-api.liveTv.getSessionPlaylistIndex()`: `request` **Changed** **Breaking** :warning: + * `plex-api.liveTv.getSessionSegment()`: `request` **Changed** **Breaking** :warning: + * `plex-api.log.writeMessage()`: `request` **Changed** **Breaking** :warning: + * `plex-api.log.enablePapertrail()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.getAvailableGrabbers()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.addDevice()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.removeDevice()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.getDeviceDetails()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.modifyDevice()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.setChannelmap()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.getDevicesChannels()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.setDevicePreferences()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.stopScan()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.scan()`: `request` **Changed** **Breaking** :warning: + * `plex-api.devices.getThumb()`: `request` **Changed** **Breaking** :warning: + * `plex-api.provider.addProvider()`: `request` **Changed** **Breaking** :warning: + * `plex-api.provider.deleteMediaProvider()`: `request` **Changed** **Breaking** :warning: + * `plex-api.subscriptions.getAllSubscriptions()`: `request` **Changed** **Breaking** :warning: + * `plex-api.subscriptions.createSubscription()`: `request` **Changed** **Breaking** :warning: + * `plex-api.subscriptions.getTemplate()`: `request` **Changed** **Breaking** :warning: + * `plex-api.subscriptions.cancelGrab()`: `request` **Changed** **Breaking** :warning: + * `plex-api.subscriptions.deleteSubscription()`: `request` **Changed** **Breaking** :warning: + * `plex-api.subscriptions.getSubscription()`: `request` **Changed** **Breaking** :warning: + * `plex-api.subscriptions.editSubscriptionPreferences()`: `request` **Changed** **Breaking** :warning: + * `plex-api.subscriptions.reorderSubscription()`: `request` **Changed** **Breaking** :warning: + * `plex-api.transcoder.transcodeImage()`: `request` **Changed** **Breaking** :warning: + * `plex-api.transcoder.makeDecision()`: `request` **Changed** **Breaking** :warning: + * `plex-api.transcoder.triggerFallback()`: `request` **Changed** **Breaking** :warning: + * `plex-api.transcoder.transcodeSubtitles()`: `request` **Changed** **Breaking** :warning: + * `plex-api.transcoder.startTranscodeSession()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playlist.listPlaylists()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playlist.getPlaylist()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playlist.getPlaylistItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.createPlaylist()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.uploadPlaylist()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.deletePlaylist()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.updatePlaylist()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.getPlaylistGenerators()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.clearPlaylistItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.addPlaylistItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.deletePlaylistItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.getPlaylistGenerator()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.modifyPlaylistGenerator()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.getPlaylistGeneratorItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.movePlaylistItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryPlaylists.refreshPlaylist()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.createPlayQueue()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.getPlayQueue()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.addToPlayQueue()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.clearPlayQueue()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.resetPlayQueue()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.shuffle()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.unshuffle()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.deletePlayQueueItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.playQueue.movePlayQueueItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.ultraBlur.getColors()`: `request` **Changed** **Breaking** :warning: + * `plex-api.ultraBlur.getImage()`: `request` **Changed** **Breaking** :warning: + * `plex-api.status.listPlaybackHistory()`: `request` **Changed** **Breaking** :warning: + * `plex-api.status.terminateSession()`: `request` **Changed** **Breaking** :warning: + * `plex-api.status.deleteHistory()`: `request` **Changed** **Breaking** :warning: + * `plex-api.status.getHistoryItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.updater.applyUpdates()`: `request` **Changed** **Breaking** :warning: + * `plex-api.updater.checkUpdates()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getCollectionItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getMetadataItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getAlbums()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.listContent()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getAllLeaves()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getArts()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getCategories()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getCluster()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getSonicPath()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getFolders()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.listMoments()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getSonicallySimilar()`: `request` **Changed** **Breaking** :warning: + * `plex-api.content.getCollectionImage()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryCollections.addCollectionItems()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryCollections.deleteCollectionItem()`: `request` **Changed** **Breaking** :warning: + * `plex-api.libraryCollections.moveCollectionItem()`: `request` **Changed** **Breaking** :warning: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 20f54198..bad919c3 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -22,7 +22,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.41.0 + version: 0.42.0 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index f51812b1..5381d837 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -43,6 +43,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -106,6 +109,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -156,6 +162,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -200,6 +209,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/octet-stream @@ -244,6 +256,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/octet-stream @@ -301,6 +316,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -387,6 +405,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -469,6 +490,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 x-speakeasy-test-group: Butler @@ -511,6 +535,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 x-speakeasy-test-group: Butler @@ -566,6 +593,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -696,6 +726,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -743,6 +776,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -793,6 +829,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -992,6 +1031,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -1039,6 +1081,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -1240,6 +1285,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -1447,6 +1495,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -1491,6 +1542,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -1698,6 +1752,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -1905,6 +1962,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -2112,6 +2172,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -2319,6 +2382,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -2523,6 +2589,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -2573,6 +2642,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -2623,6 +2695,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -2827,6 +2902,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -3028,6 +3106,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -3230,6 +3311,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -3429,6 +3513,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -3624,6 +3711,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -3707,6 +3797,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -3922,6 +4015,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -3975,6 +4071,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -4022,6 +4121,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -4215,6 +4317,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -4408,6 +4513,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == audio/mpeg3 @@ -4464,6 +4572,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -4514,6 +4625,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -4707,6 +4821,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -4900,6 +5017,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -5104,6 +5224,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -5297,6 +5420,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -5633,6 +5759,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -5680,6 +5809,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -5739,6 +5871,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -5935,6 +6070,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6128,6 +6266,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6321,6 +6462,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6514,6 +6658,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6707,6 +6854,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6754,6 +6904,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6801,6 +6954,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6848,6 +7004,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6895,6 +7054,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -6942,6 +7104,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == text/plain @@ -6992,6 +7157,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == image/jpeg @@ -7051,6 +7219,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7101,6 +7272,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/octet-stream @@ -7154,6 +7328,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == audio/mpeg3 @@ -7207,6 +7384,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == image/jpeg @@ -7254,6 +7434,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7467,6 +7650,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7514,6 +7700,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7564,6 +7753,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7614,6 +7806,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7661,6 +7856,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7711,6 +7909,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7907,6 +8108,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -7957,6 +8161,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8007,6 +8214,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8054,6 +8264,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8129,6 +8342,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8179,6 +8395,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8229,6 +8448,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8282,6 +8504,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8458,6 +8683,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8651,6 +8879,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8711,6 +8942,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8771,6 +9005,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8818,6 +9055,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8868,6 +9108,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8925,6 +9168,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -8972,6 +9218,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -9019,6 +9268,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -9069,6 +9321,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -9141,6 +9396,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -9355,6 +9613,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -9715,6 +9976,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -9925,6 +10189,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -10127,6 +10394,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -10326,6 +10596,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -10540,6 +10813,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == image/jpeg @@ -10671,6 +10947,9 @@ workflows: - name: X-Plex-Client-Profile-Name in: header value: generic + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -10951,6 +11230,9 @@ workflows: - name: X-Plex-Client-Profile-Name in: header value: generic + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == video/x-matroska @@ -10995,6 +11277,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -11188,6 +11473,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -11257,6 +11545,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -11450,6 +11741,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -11523,6 +11817,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 x-speakeasy-test-group: Library Playlists @@ -11565,6 +11862,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 x-speakeasy-test-group: Library Playlists @@ -11607,6 +11907,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 x-speakeasy-test-group: Library Playlists @@ -11649,6 +11952,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -11696,6 +12002,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -11889,6 +12198,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -12085,6 +12397,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -12281,6 +12596,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -12345,6 +12663,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -12541,6 +12862,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -12735,6 +13059,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -12943,6 +13270,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -12999,6 +13329,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -13195,6 +13528,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -13388,6 +13724,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -13581,6 +13920,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -13774,6 +14116,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -13967,6 +14312,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -14163,6 +14511,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -14359,6 +14710,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -14552,6 +14906,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -14617,6 +14974,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == image/png @@ -14837,6 +15197,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -14884,6 +15247,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -14931,6 +15297,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -14991,6 +15360,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -15208,6 +15580,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -15401,6 +15776,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -15594,6 +15972,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -15787,6 +16168,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -15980,6 +16364,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -16027,6 +16414,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -16074,6 +16464,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -16127,6 +16520,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -16320,6 +16716,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -16367,6 +16766,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -16417,6 +16819,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -16613,6 +17018,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == image/jpeg @@ -16663,6 +17071,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -16859,6 +17270,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -17055,6 +17469,9 @@ workflows: - name: X-Plex-Marketplace in: header value: googlePlay + - name: accepts + in: header + value: application/xml successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 4fdad94e..d427e851 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,20 +9,20 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:d10668c0bc8779046995836bd0e5b4e681f3a1661df05ef984d3951b16891135 - sourceBlobDigest: sha256:0e84e36799922513fa9fde276e7ed24d7e8ceef23d40f347d4aa7a40fddc2257 + sourceRevisionDigest: sha256:bc60551015634fd59475cf17983ca3aedcab591426d526ab1e3634b1feedaec1 + sourceBlobDigest: sha256:fc8cd5343a94564b646830738f38e065d61e2ea63e4a1383ce07533586889950 tags: - latest - - speakeasy-sdk-regen-1760246702 + - speakeasy-sdk-regen-1760248310 - 1.1.1 targets: plexjs: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:d10668c0bc8779046995836bd0e5b4e681f3a1661df05ef984d3951b16891135 - sourceBlobDigest: sha256:0e84e36799922513fa9fde276e7ed24d7e8ceef23d40f347d4aa7a40fddc2257 + sourceRevisionDigest: sha256:bc60551015634fd59475cf17983ca3aedcab591426d526ab1e3634b1feedaec1 + sourceBlobDigest: sha256:fc8cd5343a94564b646830738f38e065d61e2ea63e4a1383ce07533586889950 codeSamplesNamespace: code-samples-typescript-plexjs - codeSamplesRevisionDigest: sha256:49b6f9d7cbbdae2b95c455771f7a7e9544fa64695d7326650a4a93a255ba101b + codeSamplesRevisionDigest: sha256:341820816861b13701967c2a958e9654d258aeb27b83f2e875cb14ee316fa85c workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index e45bd48a..04b4ebc1 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -20,30 +20,63 @@ specific category of applications. ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; -import { generalGetServerInfo } from "@lukehagar/plexjs/funcs/generalGetServerInfo.js"; +import { transcoderStartTranscodeSession } from "@lukehagar/plexjs/funcs/transcoderStartTranscodeSession.js"; +import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { - const res = await generalGetServerInfo(plexAPI, {}); + const res = await transcoderStartTranscodeSession(plexAPI, { + transcodeType: TranscodeType.Music, + extension: Extension.Mpd, + advancedSubtitles: AdvancedSubtitles.Burn, + audioBoost: 50, + audioChannelCount: 5, + autoAdjustQuality: BoolInt.One, + autoAdjustSubtitle: BoolInt.One, + directPlay: BoolInt.One, + directStream: BoolInt.One, + directStreamAudio: BoolInt.One, + disableResolutionRotation: BoolInt.One, + hasMDE: BoolInt.One, + location: StartTranscodeSessionLocation.Wan, + mediaBufferSize: 102400, + mediaIndex: 0, + musicBitrate: 5000, + offset: 90.5, + partIndex: 0, + path: "/library/metadata/151671", + peakBitrate: 12000, + photoResolution: "1080x1080", + protocol: StartTranscodeSessionProtocol.Dash, + secondsPerSegment: 5, + subtitleSize: 50, + videoBitrate: 12000, + videoQuality: 50, + videoResolution: "1080x1080", + xPlexClientProfileExtra: "add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.frameRate&value=60&replace=true)+append-transcode-target-codec(type=videoProfile&context=streaming&videoCodec=h264%2Chevc&audioCodec=aac&protocol=dash)", + xPlexClientProfileName: "generic", + }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("generalGetServerInfo failed:", res.error); + console.log("transcoderStartTranscodeSession failed:", res.error); } } diff --git a/README.md b/README.md index dc3542fd..fac2a1bf 100644 --- a/README.md +++ b/README.md @@ -72,22 +72,65 @@ yarn add @lukehagar/plexjs ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { + Extension, + StartTranscodeSessionLocation, + StartTranscodeSessionProtocol, +} from "@lukehagar/plexjs/sdk/models/operations"; +import { + Accepts, + AdvancedSubtitles, + BoolInt, + TranscodeType, +} from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { - const result = await plexAPI.general.getServerInfo({}); + const result = await plexAPI.transcoder.startTranscodeSession({ + transcodeType: TranscodeType.Music, + extension: Extension.Mpd, + advancedSubtitles: AdvancedSubtitles.Burn, + audioBoost: 50, + audioChannelCount: 5, + autoAdjustQuality: BoolInt.One, + autoAdjustSubtitle: BoolInt.One, + directPlay: BoolInt.One, + directStream: BoolInt.One, + directStreamAudio: BoolInt.One, + disableResolutionRotation: BoolInt.One, + hasMDE: BoolInt.One, + location: StartTranscodeSessionLocation.Wan, + mediaBufferSize: 102400, + mediaIndex: 0, + musicBitrate: 5000, + offset: 90.5, + partIndex: 0, + path: "/library/metadata/151671", + peakBitrate: 12000, + photoResolution: "1080x1080", + protocol: StartTranscodeSessionProtocol.Dash, + secondsPerSegment: 5, + subtitleSize: 50, + videoBitrate: 12000, + videoQuality: 50, + videoResolution: "1080x1080", + xPlexClientProfileExtra: + "add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.frameRate&value=60&replace=true)+append-transcode-target-codec(type=videoProfile&context=streaming&videoCodec=h264%2Chevc&audioCodec=aac&protocol=dash)", + xPlexClientProfileName: "generic", + }); console.log(result); } @@ -444,18 +487,20 @@ run(); ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import * as errors from "@lukehagar/plexjs/sdk/models/errors"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -527,22 +572,24 @@ If the selected server has variables, you may override its default values throug ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ serverIdx: 1, protocol: "", host: "electric-excess.name", port: "36393", - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -560,19 +607,21 @@ run(); The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example: ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ serverURL: "https://http://localhost:32400", - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -642,26 +691,28 @@ const sdk = new PlexAPI({ httpClient: httpClient }); This SDK supports the following security scheme globally: -| Name | Type | Scheme | -| -------- | ------ | ------- | -| `apiKey` | apiKey | API key | +| Name | Type | Scheme | +| ------- | ------ | ------- | +| `token` | apiKey | API key | -To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example: +To authenticate with the API the `token` parameter must be set when initializing the SDK client instance. For example: ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - apiKey: "", - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + token: "", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -976,18 +1027,20 @@ Some of the endpoints in this SDK support retries. If you use the SDK without a To change the default retry strategy for a single API call, simply provide a retryConfig object to the call: ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1014,6 +1067,7 @@ run(); If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization: ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ retryConfig: { @@ -1026,16 +1080,17 @@ const plexAPI = new PlexAPI({ }, retryConnectionErrors: false, }, - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/RELEASES.md b/RELEASES.md index cbf0da08..f67396ae 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1408,4 +1408,14 @@ Based on: ### Generated - [typescript v0.41.0] . ### Releases -- [NPM v0.41.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.41.0 - . \ No newline at end of file +- [NPM v0.41.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.41.0 - . + +## 2025-10-12 05:51:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.42.0] . +### Releases +- [NPM v0.42.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.42.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index e7c85eba..c53f34a9 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1,22 +1,65 @@ ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { + Extension, + StartTranscodeSessionLocation, + StartTranscodeSessionProtocol, +} from "@lukehagar/plexjs/sdk/models/operations"; +import { + Accepts, + AdvancedSubtitles, + BoolInt, + TranscodeType, +} from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { - const result = await plexAPI.general.getServerInfo({}); + const result = await plexAPI.transcoder.startTranscodeSession({ + transcodeType: TranscodeType.Music, + extension: Extension.Mpd, + advancedSubtitles: AdvancedSubtitles.Burn, + audioBoost: 50, + audioChannelCount: 5, + autoAdjustQuality: BoolInt.One, + autoAdjustSubtitle: BoolInt.One, + directPlay: BoolInt.One, + directStream: BoolInt.One, + directStreamAudio: BoolInt.One, + disableResolutionRotation: BoolInt.One, + hasMDE: BoolInt.One, + location: StartTranscodeSessionLocation.Wan, + mediaBufferSize: 102400, + mediaIndex: 0, + musicBitrate: 5000, + offset: 90.5, + partIndex: 0, + path: "/library/metadata/151671", + peakBitrate: 12000, + photoResolution: "1080x1080", + protocol: StartTranscodeSessionProtocol.Dash, + secondsPerSegment: 5, + subtitleSize: 50, + videoBitrate: 12000, + videoQuality: 50, + videoResolution: "1080x1080", + xPlexClientProfileExtra: + "add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.frameRate&value=60&replace=true)+append-transcode-target-codec(type=videoProfile&context=streaming&videoCodec=h264%2Chevc&audioCodec=aac&protocol=dash)", + xPlexClientProfileName: "generic", + }); console.log(result); } diff --git a/codeSamples.yaml b/codeSamples.yaml index 7b6c30a2..981331de 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -10,18 +10,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -38,18 +40,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -83,18 +87,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -113,18 +119,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -141,18 +149,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -173,18 +183,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -204,19 +216,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { ReportState } from "@lukehagar/plexjs/sdk/models/operations"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -248,18 +261,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -278,18 +293,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -323,18 +340,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -405,18 +424,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { StopTaskTask } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -436,18 +457,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { StartTaskTask } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -483,18 +506,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -513,19 +538,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { AdvancedSubtitles, BoolInt, LocationParameter, Protocol } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, Protocol } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -573,18 +599,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -604,18 +632,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -635,18 +665,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -665,18 +697,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -700,18 +734,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -735,18 +771,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -770,19 +808,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -801,18 +840,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -829,18 +870,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -863,19 +906,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -895,19 +939,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -927,19 +972,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -959,18 +1005,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -987,18 +1035,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1018,18 +1068,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1048,19 +1100,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1080,18 +1133,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1110,18 +1165,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1140,19 +1197,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1175,18 +1233,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1206,18 +1266,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1237,19 +1299,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1289,18 +1352,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1351,18 +1416,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1381,18 +1448,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1412,18 +1481,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1442,18 +1513,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1473,18 +1546,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1504,18 +1579,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1535,19 +1612,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1569,19 +1647,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1602,18 +1681,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1633,19 +1714,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1665,19 +1747,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1697,19 +1780,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1736,18 +1820,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1769,18 +1855,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1799,18 +1887,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1829,18 +1919,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1859,19 +1951,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1891,19 +1984,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1924,18 +2018,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1954,18 +2050,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1985,18 +2083,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2015,19 +2115,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2047,19 +2148,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2079,18 +2181,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2112,18 +2216,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2143,18 +2249,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2177,18 +2285,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2207,19 +2317,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2239,19 +2350,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2272,18 +2384,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2302,18 +2416,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2332,18 +2448,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2362,19 +2480,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2394,18 +2513,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2424,18 +2545,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2454,18 +2577,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2484,19 +2609,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2517,18 +2643,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2547,18 +2675,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2577,18 +2707,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2607,19 +2739,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2641,18 +2774,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { SetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2673,18 +2808,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { UpdateItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2705,18 +2842,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { GetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2737,19 +2876,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2768,19 +2908,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2801,18 +2942,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { GetPartIndexIndex } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2833,18 +2976,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { GetImageFromBifIndex } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2865,19 +3010,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2899,18 +3045,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2929,18 +3077,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2959,18 +3109,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3009,19 +3161,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3067,18 +3220,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3097,18 +3252,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3125,19 +3282,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3157,19 +3315,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3189,18 +3348,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3225,18 +3386,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3255,18 +3418,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3285,19 +3450,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3317,18 +3483,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3347,18 +3515,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3377,18 +3547,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3407,18 +3579,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3437,18 +3611,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3467,18 +3643,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3497,18 +3675,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3528,18 +3708,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3558,18 +3740,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3588,18 +3772,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3619,18 +3805,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3651,18 +3839,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3681,18 +3871,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3711,18 +3903,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3741,18 +3935,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3771,18 +3967,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3801,18 +3999,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3831,18 +4031,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3861,18 +4063,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3892,18 +4096,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3922,18 +4128,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3953,18 +4161,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3983,19 +4193,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4015,18 +4226,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4045,18 +4258,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4076,19 +4291,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4109,18 +4325,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4140,18 +4358,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4170,18 +4390,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4200,18 +4422,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4245,24 +4469,26 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const result = await plexAPI.dvRs.createDVR({ lineup: "lineup://tv.plex.providers.epg.onconnect/USA-HI51418-DEFAULT", - device: [ + deviceQueryParameter: [ "d", "e", "v", @@ -4331,18 +4557,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4361,18 +4589,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4391,18 +4621,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4422,18 +4654,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4453,18 +4687,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4484,18 +4720,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4515,18 +4753,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4546,18 +4786,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4576,18 +4818,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4606,18 +4850,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4636,23 +4882,25 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const result = await plexAPI.epg.computeChannelMap({ - device: "Mobile", + deviceQueryParameter: "", lineup: "", }); @@ -4667,18 +4915,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4714,18 +4964,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4745,18 +4997,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4776,18 +5030,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4825,23 +5081,25 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const result = await plexAPI.epg.getLineup({ - device: "Desktop", + deviceQueryParameter: "", lineupGroup: "", }); @@ -4856,18 +5114,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4906,18 +5166,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4936,18 +5198,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4967,18 +5231,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5017,18 +5283,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5045,18 +5313,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5073,18 +5343,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5120,18 +5392,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5167,18 +5441,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5197,18 +5473,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5227,19 +5505,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5259,18 +5538,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5307,18 +5588,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5337,18 +5620,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5367,18 +5652,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5397,18 +5684,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5428,24 +5717,26 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const result = await plexAPI.devices.getThumb({ deviceId: 960617, - version: 1025, + versionPathParameter: 1025, }); console.log(result); @@ -5459,18 +5750,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5506,18 +5799,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5553,18 +5848,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5583,19 +5880,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5615,18 +5913,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5684,18 +5984,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5714,18 +6016,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5744,19 +6048,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5777,18 +6082,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5808,18 +6115,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5838,19 +6147,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5875,19 +6185,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { CreatePlayQueueType } from "@lukehagar/plexjs/sdk/models/operations"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5911,19 +6222,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5945,19 +6257,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5977,18 +6290,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6007,18 +6322,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6038,18 +6355,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6069,18 +6388,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6099,18 +6420,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6129,18 +6452,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6159,18 +6484,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6187,18 +6514,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6215,19 +6544,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6247,18 +6577,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6277,18 +6609,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6307,18 +6641,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6337,18 +6673,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6367,18 +6705,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6397,18 +6737,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6427,18 +6769,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6457,18 +6801,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6488,18 +6834,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6520,19 +6868,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6566,18 +6915,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6598,18 +6949,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { Action } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6631,18 +6984,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6662,19 +7017,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6695,18 +7051,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/sdk/models/operations"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6726,18 +7084,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6756,19 +7116,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6827,18 +7188,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6881,18 +7244,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6911,18 +7276,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6941,18 +7308,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; + import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6972,19 +7341,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7004,19 +7374,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7053,19 +7424,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { MakeDecisionLocation, MakeDecisionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; - import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7111,19 +7483,20 @@ actions: label: PlexJS source: |- import { PlexAPI } from "@lukehagar/plexjs"; - import { TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7143,19 +7516,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; - import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7203,19 +7577,20 @@ actions: source: |- import { PlexAPI } from "@lukehagar/plexjs"; import { TranscodeSubtitlesLocation, TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/sdk/models/operations"; - import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; + import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdk/models/operations/addcollectionitemsglobals.md b/docs/sdk/models/operations/addcollectionitemsglobals.md index 805aabe6..bdf2b373 100644 --- a/docs/sdk/models/operations/addcollectionitemsglobals.md +++ b/docs/sdk/models/operations/addcollectionitemsglobals.md @@ -6,16 +6,16 @@ import { AddCollectionItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddCollectionItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddCollectionItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/addcollectionitemsrequest.md b/docs/sdk/models/operations/addcollectionitemsrequest.md index a7500527..b9c7b82d 100644 --- a/docs/sdk/models/operations/addcollectionitemsrequest.md +++ b/docs/sdk/models/operations/addcollectionitemsrequest.md @@ -15,15 +15,16 @@ let value: AddCollectionItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `collectionId` | *number* | :heavy_check_mark: | The collection id | | | `uri` | *string* | :heavy_check_mark: | The URI describing the items to add to this collection | | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddeviceglobals.md b/docs/sdk/models/operations/adddeviceglobals.md index a5611eb5..328fe11c 100644 --- a/docs/sdk/models/operations/adddeviceglobals.md +++ b/docs/sdk/models/operations/adddeviceglobals.md @@ -6,16 +6,16 @@ import { AddDeviceGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddDeviceGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddDeviceGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddevicerequest.md b/docs/sdk/models/operations/adddevicerequest.md index e366a4bd..1067ec61 100644 --- a/docs/sdk/models/operations/adddevicerequest.md +++ b/docs/sdk/models/operations/adddevicerequest.md @@ -14,14 +14,15 @@ let value: AddDeviceRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `uri` | *string* | :heavy_minus_sign: | The URI of the device. | http://10.0.0.5 | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddevicetodvrglobals.md b/docs/sdk/models/operations/adddevicetodvrglobals.md index 398ed4b8..3a3a413d 100644 --- a/docs/sdk/models/operations/adddevicetodvrglobals.md +++ b/docs/sdk/models/operations/adddevicetodvrglobals.md @@ -6,16 +6,16 @@ import { AddDeviceToDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddDeviceToDVRGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddDeviceToDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddevicetodvrrequest.md b/docs/sdk/models/operations/adddevicetodvrrequest.md index 9bc312a8..9f7b0a55 100644 --- a/docs/sdk/models/operations/adddevicetodvrrequest.md +++ b/docs/sdk/models/operations/adddevicetodvrrequest.md @@ -15,15 +15,16 @@ let value: AddDeviceToDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device to add. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddownloadqueueitemsglobals.md b/docs/sdk/models/operations/adddownloadqueueitemsglobals.md index 1dbe4a31..77c6b18f 100644 --- a/docs/sdk/models/operations/adddownloadqueueitemsglobals.md +++ b/docs/sdk/models/operations/adddownloadqueueitemsglobals.md @@ -6,16 +6,16 @@ import { AddDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddDownloadQueueItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/adddownloadqueueitemsrequest.md b/docs/sdk/models/operations/adddownloadqueueitemsrequest.md index 11fc9d88..67d38d0f 100644 --- a/docs/sdk/models/operations/adddownloadqueueitemsrequest.md +++ b/docs/sdk/models/operations/adddownloadqueueitemsrequest.md @@ -45,16 +45,17 @@ let value: AddDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `queueId` | *number* | :heavy_check_mark: | The queue id | | | `keys` | *string*[] | :heavy_check_mark: | Keys to add | [
"/library/metadata/3",
"/library/metadata/6"
] | | `advancedSubtitles` | [shared.AdvancedSubtitles](../../../sdk/models/shared/advancedsubtitles.md) | :heavy_minus_sign: | Indicates how incompatible advanced subtitles (such as ass/ssa) should be included: * 'burn' - Burn incompatible advanced text subtitles into the video stream * 'text' - Transcode incompatible advanced text subtitles to a compatible text format, even if some markup is lost
| burn | diff --git a/docs/sdk/models/operations/addextrasglobals.md b/docs/sdk/models/operations/addextrasglobals.md index f6540fa9..745ded26 100644 --- a/docs/sdk/models/operations/addextrasglobals.md +++ b/docs/sdk/models/operations/addextrasglobals.md @@ -6,16 +6,16 @@ import { AddExtrasGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddExtrasGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddExtrasGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/addextrasrequest.md b/docs/sdk/models/operations/addextrasrequest.md index 3263926f..6e0a89d6 100644 --- a/docs/sdk/models/operations/addextrasrequest.md +++ b/docs/sdk/models/operations/addextrasrequest.md @@ -15,16 +15,17 @@ let value: AddExtrasRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `extraType` | *number* | :heavy_minus_sign: | The metadata type of the extra | | | `url` | *string* | :heavy_check_mark: | The URL of the extra | | diff --git a/docs/sdk/models/operations/addlineupglobals.md b/docs/sdk/models/operations/addlineupglobals.md index 623a3f7c..cb65f38b 100644 --- a/docs/sdk/models/operations/addlineupglobals.md +++ b/docs/sdk/models/operations/addlineupglobals.md @@ -6,16 +6,16 @@ import { AddLineupGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddLineupGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddLineupGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/addlineuprequest.md b/docs/sdk/models/operations/addlineuprequest.md index 65c705ab..50b9095e 100644 --- a/docs/sdk/models/operations/addlineuprequest.md +++ b/docs/sdk/models/operations/addlineuprequest.md @@ -15,15 +15,16 @@ let value: AddLineupRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | | `lineup` | *string* | :heavy_check_mark: | The lineup to delete | | \ No newline at end of file diff --git a/docs/sdk/models/operations/addplaylistitemsglobals.md b/docs/sdk/models/operations/addplaylistitemsglobals.md index e285df44..24960f4d 100644 --- a/docs/sdk/models/operations/addplaylistitemsglobals.md +++ b/docs/sdk/models/operations/addplaylistitemsglobals.md @@ -6,16 +6,16 @@ import { AddPlaylistItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddPlaylistItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddPlaylistItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/addplaylistitemsrequest.md b/docs/sdk/models/operations/addplaylistitemsrequest.md index a88bdc03..f10f7d66 100644 --- a/docs/sdk/models/operations/addplaylistitemsrequest.md +++ b/docs/sdk/models/operations/addplaylistitemsrequest.md @@ -14,16 +14,17 @@ let value: AddPlaylistItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | | `uri` | *string* | :heavy_minus_sign: | The content URI for the playlist. | | | `playQueueID` | *number* | :heavy_minus_sign: | The play queue to add to a playlist. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/addproviderglobals.md b/docs/sdk/models/operations/addproviderglobals.md index 2e784735..ca47ec8d 100644 --- a/docs/sdk/models/operations/addproviderglobals.md +++ b/docs/sdk/models/operations/addproviderglobals.md @@ -6,16 +6,16 @@ import { AddProviderGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddProviderGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddProviderGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/addproviderrequest.md b/docs/sdk/models/operations/addproviderrequest.md index a9e1115c..fc409e83 100644 --- a/docs/sdk/models/operations/addproviderrequest.md +++ b/docs/sdk/models/operations/addproviderrequest.md @@ -14,14 +14,15 @@ let value: AddProviderRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `url` | *string* | :heavy_check_mark: | The URL of the media provider to add. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/addsectionglobals.md b/docs/sdk/models/operations/addsectionglobals.md index d7f9d668..b982033b 100644 --- a/docs/sdk/models/operations/addsectionglobals.md +++ b/docs/sdk/models/operations/addsectionglobals.md @@ -6,16 +6,16 @@ import { AddSectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddSectionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddSectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/addsectionrequest.md b/docs/sdk/models/operations/addsectionrequest.md index 7c6179b0..b969effc 100644 --- a/docs/sdk/models/operations/addsectionrequest.md +++ b/docs/sdk/models/operations/addsectionrequest.md @@ -25,16 +25,17 @@ let value: AddSectionRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `name` | *string* | :heavy_check_mark: | The name of the new section | | | `type` | *number* | :heavy_check_mark: | The type of library section | | | `scanner` | *string* | :heavy_minus_sign: | The scanner this section should use | | diff --git a/docs/sdk/models/operations/addsubtitlesglobals.md b/docs/sdk/models/operations/addsubtitlesglobals.md index 19039ce0..288338cb 100644 --- a/docs/sdk/models/operations/addsubtitlesglobals.md +++ b/docs/sdk/models/operations/addsubtitlesglobals.md @@ -6,16 +6,16 @@ import { AddSubtitlesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddSubtitlesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddSubtitlesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/addsubtitlesrequest.md b/docs/sdk/models/operations/addsubtitlesrequest.md index 41dea345..ea7abdd8 100644 --- a/docs/sdk/models/operations/addsubtitlesrequest.md +++ b/docs/sdk/models/operations/addsubtitlesrequest.md @@ -17,16 +17,17 @@ let value: AddSubtitlesRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `title` | *string* | :heavy_minus_sign: | N/A | | | `language` | *string* | :heavy_minus_sign: | N/A | | diff --git a/docs/sdk/models/operations/addtoplayqueueglobals.md b/docs/sdk/models/operations/addtoplayqueueglobals.md index a7037a50..a391e0a4 100644 --- a/docs/sdk/models/operations/addtoplayqueueglobals.md +++ b/docs/sdk/models/operations/addtoplayqueueglobals.md @@ -6,16 +6,16 @@ import { AddToPlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddToPlayQueueGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AddToPlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/addtoplayqueuerequest.md b/docs/sdk/models/operations/addtoplayqueuerequest.md index c6c00ff1..42b0986d 100644 --- a/docs/sdk/models/operations/addtoplayqueuerequest.md +++ b/docs/sdk/models/operations/addtoplayqueuerequest.md @@ -16,16 +16,17 @@ let value: AddToPlayQueueRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playQueueId` | *number* | :heavy_check_mark: | The ID of the play queue. | | | `uri` | *string* | :heavy_minus_sign: | The content URI for what we're adding to the queue. | | | `playlistID` | *string* | :heavy_minus_sign: | The ID of the playlist to add to the playQueue. | | diff --git a/docs/sdk/models/operations/analyzemetadataglobals.md b/docs/sdk/models/operations/analyzemetadataglobals.md index 3aa37cb3..4fd03154 100644 --- a/docs/sdk/models/operations/analyzemetadataglobals.md +++ b/docs/sdk/models/operations/analyzemetadataglobals.md @@ -6,16 +6,16 @@ import { AnalyzeMetadataGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AnalyzeMetadataGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AnalyzeMetadataGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/analyzemetadatarequest.md b/docs/sdk/models/operations/analyzemetadatarequest.md index 146965f2..a67cd480 100644 --- a/docs/sdk/models/operations/analyzemetadatarequest.md +++ b/docs/sdk/models/operations/analyzemetadatarequest.md @@ -14,16 +14,17 @@ let value: AnalyzeMetadataRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `thumbOffset` | *number* | :heavy_minus_sign: | Set the offset to be used for thumbnails | | | `artOffset` | *number* | :heavy_minus_sign: | Set the offset to be used for artwork | | \ No newline at end of file diff --git a/docs/sdk/models/operations/applyupdatesglobals.md b/docs/sdk/models/operations/applyupdatesglobals.md index 150180dc..31c4a4f2 100644 --- a/docs/sdk/models/operations/applyupdatesglobals.md +++ b/docs/sdk/models/operations/applyupdatesglobals.md @@ -6,16 +6,16 @@ import { ApplyUpdatesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ApplyUpdatesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ApplyUpdatesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/applyupdatesrequest.md b/docs/sdk/models/operations/applyupdatesrequest.md index 0f8aacdc..43f77c39 100644 --- a/docs/sdk/models/operations/applyupdatesrequest.md +++ b/docs/sdk/models/operations/applyupdatesrequest.md @@ -16,15 +16,16 @@ let value: ApplyUpdatesRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `tonight` | [shared.BoolInt](../../../sdk/models/shared/boolint.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 immediately. | 1 | | `skip` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/autocompleteglobals.md b/docs/sdk/models/operations/autocompleteglobals.md index 1aabbf8d..7ecb78b2 100644 --- a/docs/sdk/models/operations/autocompleteglobals.md +++ b/docs/sdk/models/operations/autocompleteglobals.md @@ -6,16 +6,16 @@ import { AutocompleteGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: AutocompleteGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: AutocompleteGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/autocompleterequest.md b/docs/sdk/models/operations/autocompleterequest.md index fd5a4bf7..20cadf34 100644 --- a/docs/sdk/models/operations/autocompleterequest.md +++ b/docs/sdk/models/operations/autocompleterequest.md @@ -14,16 +14,17 @@ let value: AutocompleteRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `type` | *number* | :heavy_minus_sign: | Item type | | | `fieldQuery` | *string* | :heavy_minus_sign: | The "field" stands in for any field, the value is a partial string for matching | | diff --git a/docs/sdk/models/operations/cancelactivityglobals.md b/docs/sdk/models/operations/cancelactivityglobals.md index a4138722..0ff4892e 100644 --- a/docs/sdk/models/operations/cancelactivityglobals.md +++ b/docs/sdk/models/operations/cancelactivityglobals.md @@ -6,16 +6,16 @@ import { CancelActivityGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CancelActivityGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CancelActivityGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelactivityrequest.md b/docs/sdk/models/operations/cancelactivityrequest.md index 51126492..90d4f024 100644 --- a/docs/sdk/models/operations/cancelactivityrequest.md +++ b/docs/sdk/models/operations/cancelactivityrequest.md @@ -14,14 +14,15 @@ let value: CancelActivityRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `activityId` | *string* | :heavy_check_mark: | The UUID of the activity to cancel. | d6199ba1-fb5e-4cae-bf17-1a5369c1cf1e | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelgrabglobals.md b/docs/sdk/models/operations/cancelgrabglobals.md index b21b56fc..6c99cbc2 100644 --- a/docs/sdk/models/operations/cancelgrabglobals.md +++ b/docs/sdk/models/operations/cancelgrabglobals.md @@ -6,16 +6,16 @@ import { CancelGrabGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CancelGrabGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CancelGrabGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelgrabrequest.md b/docs/sdk/models/operations/cancelgrabrequest.md index a8704c9e..ffbfd145 100644 --- a/docs/sdk/models/operations/cancelgrabrequest.md +++ b/docs/sdk/models/operations/cancelgrabrequest.md @@ -14,14 +14,15 @@ let value: CancelGrabRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `operationId` | *string* | :heavy_check_mark: | The ID of the operation. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelrefreshglobals.md b/docs/sdk/models/operations/cancelrefreshglobals.md index 23323b12..ad1e16a0 100644 --- a/docs/sdk/models/operations/cancelrefreshglobals.md +++ b/docs/sdk/models/operations/cancelrefreshglobals.md @@ -6,16 +6,16 @@ import { CancelRefreshGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CancelRefreshGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CancelRefreshGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelrefreshrequest.md b/docs/sdk/models/operations/cancelrefreshrequest.md index fee52741..86cc5262 100644 --- a/docs/sdk/models/operations/cancelrefreshrequest.md +++ b/docs/sdk/models/operations/cancelrefreshrequest.md @@ -14,14 +14,15 @@ let value: CancelRefreshRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/checkupdatesglobals.md b/docs/sdk/models/operations/checkupdatesglobals.md index 75ed3154..d2c1455c 100644 --- a/docs/sdk/models/operations/checkupdatesglobals.md +++ b/docs/sdk/models/operations/checkupdatesglobals.md @@ -6,16 +6,16 @@ import { CheckUpdatesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CheckUpdatesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CheckUpdatesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/checkupdatesrequest.md b/docs/sdk/models/operations/checkupdatesrequest.md index 6c5fbf2f..621eb77e 100644 --- a/docs/sdk/models/operations/checkupdatesrequest.md +++ b/docs/sdk/models/operations/checkupdatesrequest.md @@ -15,14 +15,15 @@ let value: CheckUpdatesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `download` | [shared.BoolInt](../../../sdk/models/shared/boolint.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/sdk/models/operations/clearplaylistitemsglobals.md b/docs/sdk/models/operations/clearplaylistitemsglobals.md index 871e8a10..90bb275e 100644 --- a/docs/sdk/models/operations/clearplaylistitemsglobals.md +++ b/docs/sdk/models/operations/clearplaylistitemsglobals.md @@ -6,16 +6,16 @@ import { ClearPlaylistItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ClearPlaylistItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ClearPlaylistItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/clearplaylistitemsrequest.md b/docs/sdk/models/operations/clearplaylistitemsrequest.md index edcdee9d..effb0d17 100644 --- a/docs/sdk/models/operations/clearplaylistitemsrequest.md +++ b/docs/sdk/models/operations/clearplaylistitemsrequest.md @@ -14,14 +14,15 @@ let value: ClearPlaylistItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | \ No newline at end of file diff --git a/docs/sdk/models/operations/clearplayqueueglobals.md b/docs/sdk/models/operations/clearplayqueueglobals.md index 29678cc0..36a76248 100644 --- a/docs/sdk/models/operations/clearplayqueueglobals.md +++ b/docs/sdk/models/operations/clearplayqueueglobals.md @@ -6,16 +6,16 @@ import { ClearPlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ClearPlayQueueGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ClearPlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/clearplayqueuerequest.md b/docs/sdk/models/operations/clearplayqueuerequest.md index e991d325..4d81fcdb 100644 --- a/docs/sdk/models/operations/clearplayqueuerequest.md +++ b/docs/sdk/models/operations/clearplayqueuerequest.md @@ -14,14 +14,15 @@ let value: ClearPlayQueueRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playQueueId` | *number* | :heavy_check_mark: | The ID of the play queue. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/computechannelmapglobals.md b/docs/sdk/models/operations/computechannelmapglobals.md index ad25b3cd..71417db2 100644 --- a/docs/sdk/models/operations/computechannelmapglobals.md +++ b/docs/sdk/models/operations/computechannelmapglobals.md @@ -6,16 +6,16 @@ import { ComputeChannelMapGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ComputeChannelMapGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ComputeChannelMapGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/computechannelmaprequest.md b/docs/sdk/models/operations/computechannelmaprequest.md index 41fff8cc..679ecec6 100644 --- a/docs/sdk/models/operations/computechannelmaprequest.md +++ b/docs/sdk/models/operations/computechannelmaprequest.md @@ -6,7 +6,7 @@ import { ComputeChannelMapRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: ComputeChannelMapRequest = { - device: "Desktop", + deviceQueryParameter: "", lineup: "", }; ``` @@ -15,15 +15,16 @@ let value: ComputeChannelMapRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | -| `device` | *string* | :heavy_check_mark: | The URI describing the device | | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `deviceQueryParameter` | *string* | :heavy_check_mark: | The URI describing the device | | | `lineup` | *string* | :heavy_check_mark: | The URI describing the lineup | | \ No newline at end of file diff --git a/docs/sdk/models/operations/connectwebsocketglobals.md b/docs/sdk/models/operations/connectwebsocketglobals.md index 13d1d303..a15bcfa7 100644 --- a/docs/sdk/models/operations/connectwebsocketglobals.md +++ b/docs/sdk/models/operations/connectwebsocketglobals.md @@ -6,16 +6,16 @@ import { ConnectWebSocketGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ConnectWebSocketGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ConnectWebSocketGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/connectwebsocketrequest.md b/docs/sdk/models/operations/connectwebsocketrequest.md index 222137fa..a8b947e6 100644 --- a/docs/sdk/models/operations/connectwebsocketrequest.md +++ b/docs/sdk/models/operations/connectwebsocketrequest.md @@ -12,14 +12,15 @@ let value: ConnectWebSocketRequest = {}; | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `filter` | *string*[] | :heavy_minus_sign: | By default, all events except logs are sent. A rich filtering mechanism is provided to allow clients to opt into or out of each event type using the `filters` parameter. For example:

- `filters=-log`: All event types except logs (the default).
- `filters=foo,bar`: Only the foo and bar event types.
- `filters=`: All events types.
- `filters=-foo,bar`: All event types except foo and bar.
| | \ No newline at end of file diff --git a/docs/sdk/models/operations/createcollectionglobals.md b/docs/sdk/models/operations/createcollectionglobals.md index 8087860f..bd1b8897 100644 --- a/docs/sdk/models/operations/createcollectionglobals.md +++ b/docs/sdk/models/operations/createcollectionglobals.md @@ -6,16 +6,16 @@ import { CreateCollectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreateCollectionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CreateCollectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/createcollectionrequest.md b/docs/sdk/models/operations/createcollectionrequest.md index be90b71a..089157c0 100644 --- a/docs/sdk/models/operations/createcollectionrequest.md +++ b/docs/sdk/models/operations/createcollectionrequest.md @@ -14,16 +14,17 @@ let value: CreateCollectionRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *string* | :heavy_check_mark: | The section where this collection will be created | | | `title` | *string* | :heavy_minus_sign: | The title to filter by or assign | | | `smart` | *boolean* | :heavy_minus_sign: | Whether this is a smart collection/playlist | | diff --git a/docs/sdk/models/operations/createcustomhubglobals.md b/docs/sdk/models/operations/createcustomhubglobals.md index 6cca6d38..bea19ac6 100644 --- a/docs/sdk/models/operations/createcustomhubglobals.md +++ b/docs/sdk/models/operations/createcustomhubglobals.md @@ -6,16 +6,16 @@ import { CreateCustomHubGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreateCustomHubGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CreateCustomHubGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/createcustomhubrequest.md b/docs/sdk/models/operations/createcustomhubrequest.md index 6bba929c..d3e81dd9 100644 --- a/docs/sdk/models/operations/createcustomhubrequest.md +++ b/docs/sdk/models/operations/createcustomhubrequest.md @@ -19,16 +19,17 @@ let value: CreateCustomHubRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | The section ID for the hubs to reorder | | | `metadataItemId` | *number* | :heavy_check_mark: | The metadata item on which to base this hub. This must currently be a collection | | | `promotedToRecommended` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in recommended | 1 | diff --git a/docs/sdk/models/operations/createdvrglobals.md b/docs/sdk/models/operations/createdvrglobals.md index 8bcc776c..9df48358 100644 --- a/docs/sdk/models/operations/createdvrglobals.md +++ b/docs/sdk/models/operations/createdvrglobals.md @@ -6,16 +6,16 @@ import { CreateDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreateDVRGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CreateDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/createdvrrequest.md b/docs/sdk/models/operations/createdvrrequest.md index b80d0e9e..d705ac30 100644 --- a/docs/sdk/models/operations/createdvrrequest.md +++ b/docs/sdk/models/operations/createdvrrequest.md @@ -7,7 +7,7 @@ import { CreateDVRRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreateDVRRequest = { lineup: "lineup://tv.plex.providers.epg.onconnect/USA-HI51418-DEFAULT", - device: [ + deviceQueryParameter: [ "device[]=device://tv.plex.grabbers.hdhomerun/1053C0CA", ], language: "eng", @@ -18,16 +18,17 @@ let value: CreateDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `lineup` | *string* | :heavy_minus_sign: | The EPG lineup. | lineup://tv.plex.providers.epg.onconnect/USA-HI51418-DEFAULT | -| `device` | *string*[] | :heavy_minus_sign: | The device. | device[]=device://tv.plex.grabbers.hdhomerun/1053C0CA | +| `deviceQueryParameter` | *string*[] | :heavy_minus_sign: | The device. | device[]=device://tv.plex.grabbers.hdhomerun/1053C0CA | | `language` | *string* | :heavy_minus_sign: | The language. | eng | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmarkerglobals.md b/docs/sdk/models/operations/createmarkerglobals.md index 4151f7e8..2545d4e4 100644 --- a/docs/sdk/models/operations/createmarkerglobals.md +++ b/docs/sdk/models/operations/createmarkerglobals.md @@ -6,16 +6,16 @@ import { CreateMarkerGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreateMarkerGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CreateMarkerGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmarkerrequest.md b/docs/sdk/models/operations/createmarkerrequest.md index e92db3f9..584831df 100644 --- a/docs/sdk/models/operations/createmarkerrequest.md +++ b/docs/sdk/models/operations/createmarkerrequest.md @@ -17,16 +17,17 @@ let value: CreateMarkerRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `type` | *number* | :heavy_check_mark: | The type of marker to edit/create | | | `startTimeOffset` | *number* | :heavy_check_mark: | The start time of the marker | | diff --git a/docs/sdk/models/operations/createplaylistglobals.md b/docs/sdk/models/operations/createplaylistglobals.md index dcc0bab2..b2369004 100644 --- a/docs/sdk/models/operations/createplaylistglobals.md +++ b/docs/sdk/models/operations/createplaylistglobals.md @@ -6,16 +6,16 @@ import { CreatePlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreatePlaylistGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CreatePlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplaylistrequest.md b/docs/sdk/models/operations/createplaylistrequest.md index 5ea0134a..500b42db 100644 --- a/docs/sdk/models/operations/createplaylistrequest.md +++ b/docs/sdk/models/operations/createplaylistrequest.md @@ -12,15 +12,16 @@ let value: CreatePlaylistRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `uri` | *string* | :heavy_minus_sign: | The content URI for what we're playing (e.g. `library://...`). | | | `playQueueID` | *number* | :heavy_minus_sign: | To create a playlist from an existing play queue. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplayqueueglobals.md b/docs/sdk/models/operations/createplayqueueglobals.md index 813c618f..3729152e 100644 --- a/docs/sdk/models/operations/createplayqueueglobals.md +++ b/docs/sdk/models/operations/createplayqueueglobals.md @@ -6,16 +6,16 @@ import { CreatePlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreatePlayQueueGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CreatePlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplayqueuerequest.md b/docs/sdk/models/operations/createplayqueuerequest.md index 415ab71c..62c3204c 100644 --- a/docs/sdk/models/operations/createplayqueuerequest.md +++ b/docs/sdk/models/operations/createplayqueuerequest.md @@ -20,16 +20,17 @@ let value: CreatePlayQueueRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `uri` | *string* | :heavy_minus_sign: | The content URI for what we're playing. | | | `playlistID` | *number* | :heavy_minus_sign: | the ID of the playlist we're playing. | | | `type` | [operations.CreatePlayQueueType](../../../sdk/models/operations/createplayqueuetype.md) | :heavy_check_mark: | The type of play queue to create | | diff --git a/docs/sdk/models/operations/createsubscriptionglobals.md b/docs/sdk/models/operations/createsubscriptionglobals.md index f91db4c5..aae9d069 100644 --- a/docs/sdk/models/operations/createsubscriptionglobals.md +++ b/docs/sdk/models/operations/createsubscriptionglobals.md @@ -6,16 +6,16 @@ import { CreateSubscriptionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreateSubscriptionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: CreateSubscriptionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/createsubscriptionrequest.md b/docs/sdk/models/operations/createsubscriptionrequest.md index a4baf9bd..6f9f16a4 100644 --- a/docs/sdk/models/operations/createsubscriptionrequest.md +++ b/docs/sdk/models/operations/createsubscriptionrequest.md @@ -19,16 +19,17 @@ let value: CreateSubscriptionRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `targetLibrarySectionID` | *number* | :heavy_minus_sign: | The library section into which we'll grab the media. Not actually required when the subscription is to a playlist. | 1 | | `targetSectionLocationID` | *number* | :heavy_minus_sign: | The section location into which to grab. | 3 | | `type` | *number* | :heavy_minus_sign: | The type of the thing we're subscribing too (e.g. show, season). | 2 | diff --git a/docs/sdk/models/operations/deletecollectionglobals.md b/docs/sdk/models/operations/deletecollectionglobals.md index 90b79d7b..434d850e 100644 --- a/docs/sdk/models/operations/deletecollectionglobals.md +++ b/docs/sdk/models/operations/deletecollectionglobals.md @@ -6,16 +6,16 @@ import { DeleteCollectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteCollectionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteCollectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecollectionitemglobals.md b/docs/sdk/models/operations/deletecollectionitemglobals.md index affb5c8e..1963bb54 100644 --- a/docs/sdk/models/operations/deletecollectionitemglobals.md +++ b/docs/sdk/models/operations/deletecollectionitemglobals.md @@ -6,16 +6,16 @@ import { DeleteCollectionItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteCollectionItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteCollectionItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecollectionitemrequest.md b/docs/sdk/models/operations/deletecollectionitemrequest.md index 4fe0f9ca..14cfa554 100644 --- a/docs/sdk/models/operations/deletecollectionitemrequest.md +++ b/docs/sdk/models/operations/deletecollectionitemrequest.md @@ -15,15 +15,16 @@ let value: DeleteCollectionItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `collectionId` | *number* | :heavy_check_mark: | The collection id | | | `itemId` | *number* | :heavy_check_mark: | The item to delete | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecollectionrequest.md b/docs/sdk/models/operations/deletecollectionrequest.md index f3554a52..0206f983 100644 --- a/docs/sdk/models/operations/deletecollectionrequest.md +++ b/docs/sdk/models/operations/deletecollectionrequest.md @@ -15,15 +15,16 @@ let value: DeleteCollectionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `collectionId` | *number* | :heavy_check_mark: | Collection Id | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecustomhubglobals.md b/docs/sdk/models/operations/deletecustomhubglobals.md index ff397a94..e227ef85 100644 --- a/docs/sdk/models/operations/deletecustomhubglobals.md +++ b/docs/sdk/models/operations/deletecustomhubglobals.md @@ -6,16 +6,16 @@ import { DeleteCustomHubGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteCustomHubGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteCustomHubGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletecustomhubrequest.md b/docs/sdk/models/operations/deletecustomhubrequest.md index f84a5ac9..dccfc9fb 100644 --- a/docs/sdk/models/operations/deletecustomhubrequest.md +++ b/docs/sdk/models/operations/deletecustomhubrequest.md @@ -15,15 +15,16 @@ let value: DeleteCustomHubRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | The section ID for the hubs to change | | | `identifier` | *string* | :heavy_check_mark: | The identifier of the hub to change | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletedvrglobals.md b/docs/sdk/models/operations/deletedvrglobals.md index 1c6d1b48..ce441e48 100644 --- a/docs/sdk/models/operations/deletedvrglobals.md +++ b/docs/sdk/models/operations/deletedvrglobals.md @@ -6,16 +6,16 @@ import { DeleteDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteDVRGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletedvrrequest.md b/docs/sdk/models/operations/deletedvrrequest.md index 779196e8..42989b17 100644 --- a/docs/sdk/models/operations/deletedvrrequest.md +++ b/docs/sdk/models/operations/deletedvrrequest.md @@ -14,14 +14,15 @@ let value: DeleteDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletehistoryglobals.md b/docs/sdk/models/operations/deletehistoryglobals.md index 80a589da..c3add360 100644 --- a/docs/sdk/models/operations/deletehistoryglobals.md +++ b/docs/sdk/models/operations/deletehistoryglobals.md @@ -6,16 +6,16 @@ import { DeleteHistoryGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteHistoryGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteHistoryGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletehistoryrequest.md b/docs/sdk/models/operations/deletehistoryrequest.md index 10010fda..d16d96df 100644 --- a/docs/sdk/models/operations/deletehistoryrequest.md +++ b/docs/sdk/models/operations/deletehistoryrequest.md @@ -14,14 +14,15 @@ let value: DeleteHistoryRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `historyId` | *number* | :heavy_check_mark: | The id of the history item (the `historyKey` from above) | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteindexesglobals.md b/docs/sdk/models/operations/deleteindexesglobals.md index 0a3c62bb..6e9d25aa 100644 --- a/docs/sdk/models/operations/deleteindexesglobals.md +++ b/docs/sdk/models/operations/deleteindexesglobals.md @@ -6,16 +6,16 @@ import { DeleteIndexesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteIndexesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteIndexesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteindexesrequest.md b/docs/sdk/models/operations/deleteindexesrequest.md index 85c7a286..969a885d 100644 --- a/docs/sdk/models/operations/deleteindexesrequest.md +++ b/docs/sdk/models/operations/deleteindexesrequest.md @@ -14,14 +14,15 @@ let value: DeleteIndexesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteintrosglobals.md b/docs/sdk/models/operations/deleteintrosglobals.md index c1ac38d2..08d27e7f 100644 --- a/docs/sdk/models/operations/deleteintrosglobals.md +++ b/docs/sdk/models/operations/deleteintrosglobals.md @@ -6,16 +6,16 @@ import { DeleteIntrosGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteIntrosGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteIntrosGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteintrosrequest.md b/docs/sdk/models/operations/deleteintrosrequest.md index f5a4ab03..27dbe587 100644 --- a/docs/sdk/models/operations/deleteintrosrequest.md +++ b/docs/sdk/models/operations/deleteintrosrequest.md @@ -14,14 +14,15 @@ let value: DeleteIntrosRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelibrarysectionglobals.md b/docs/sdk/models/operations/deletelibrarysectionglobals.md index 8af6ad48..4c63f389 100644 --- a/docs/sdk/models/operations/deletelibrarysectionglobals.md +++ b/docs/sdk/models/operations/deletelibrarysectionglobals.md @@ -6,16 +6,16 @@ import { DeleteLibrarySectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteLibrarySectionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteLibrarySectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelibrarysectionrequest.md b/docs/sdk/models/operations/deletelibrarysectionrequest.md index 8b89eedd..24f4af35 100644 --- a/docs/sdk/models/operations/deletelibrarysectionrequest.md +++ b/docs/sdk/models/operations/deletelibrarysectionrequest.md @@ -16,15 +16,16 @@ let value: DeleteLibrarySectionRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *string* | :heavy_check_mark: | The section identifier | | | `async` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | If set, response will return an activity with the actual deletion process. Otherwise request will return when deletion is complete | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelineupglobals.md b/docs/sdk/models/operations/deletelineupglobals.md index 340f06a9..508784b9 100644 --- a/docs/sdk/models/operations/deletelineupglobals.md +++ b/docs/sdk/models/operations/deletelineupglobals.md @@ -6,16 +6,16 @@ import { DeleteLineupGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteLineupGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteLineupGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletelineuprequest.md b/docs/sdk/models/operations/deletelineuprequest.md index 0d95e2e8..8320f2ac 100644 --- a/docs/sdk/models/operations/deletelineuprequest.md +++ b/docs/sdk/models/operations/deletelineuprequest.md @@ -15,15 +15,16 @@ let value: DeleteLineupRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | | `lineup` | *string* | :heavy_check_mark: | The lineup to delete | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemarkerglobals.md b/docs/sdk/models/operations/deletemarkerglobals.md index bdc9fed3..4acb0406 100644 --- a/docs/sdk/models/operations/deletemarkerglobals.md +++ b/docs/sdk/models/operations/deletemarkerglobals.md @@ -6,16 +6,16 @@ import { DeleteMarkerGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteMarkerGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteMarkerGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemarkerrequest.md b/docs/sdk/models/operations/deletemarkerrequest.md index c4b6ae7a..e4976074 100644 --- a/docs/sdk/models/operations/deletemarkerrequest.md +++ b/docs/sdk/models/operations/deletemarkerrequest.md @@ -15,15 +15,16 @@ let value: DeleteMarkerRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `marker` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemediaitemglobals.md b/docs/sdk/models/operations/deletemediaitemglobals.md index ae22957a..4cb661e8 100644 --- a/docs/sdk/models/operations/deletemediaitemglobals.md +++ b/docs/sdk/models/operations/deletemediaitemglobals.md @@ -6,16 +6,16 @@ import { DeleteMediaItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteMediaItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteMediaItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemediaitemrequest.md b/docs/sdk/models/operations/deletemediaitemrequest.md index 47313742..b8d1c935 100644 --- a/docs/sdk/models/operations/deletemediaitemrequest.md +++ b/docs/sdk/models/operations/deletemediaitemrequest.md @@ -17,16 +17,17 @@ let value: DeleteMediaItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `mediaItem` | *string* | :heavy_check_mark: | N/A | | | `proxy` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether proxy items, such as media optimized versions, should also be deleted. Defaults to false. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemediaproviderglobals.md b/docs/sdk/models/operations/deletemediaproviderglobals.md index c1f135c3..5fe5ae19 100644 --- a/docs/sdk/models/operations/deletemediaproviderglobals.md +++ b/docs/sdk/models/operations/deletemediaproviderglobals.md @@ -6,16 +6,16 @@ import { DeleteMediaProviderGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteMediaProviderGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteMediaProviderGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemediaproviderrequest.md b/docs/sdk/models/operations/deletemediaproviderrequest.md index 5689a6f9..461e0644 100644 --- a/docs/sdk/models/operations/deletemediaproviderrequest.md +++ b/docs/sdk/models/operations/deletemediaproviderrequest.md @@ -14,14 +14,15 @@ let value: DeleteMediaProviderRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `provider` | *string* | :heavy_check_mark: | The ID of the media provider to delete | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemetadataitemglobals.md b/docs/sdk/models/operations/deletemetadataitemglobals.md index 18bf57b8..178cb164 100644 --- a/docs/sdk/models/operations/deletemetadataitemglobals.md +++ b/docs/sdk/models/operations/deletemetadataitemglobals.md @@ -6,16 +6,16 @@ import { DeleteMetadataItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteMetadataItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteMetadataItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemetadataitemrequest.md b/docs/sdk/models/operations/deletemetadataitemrequest.md index e0084d76..7840b298 100644 --- a/docs/sdk/models/operations/deletemetadataitemrequest.md +++ b/docs/sdk/models/operations/deletemetadataitemrequest.md @@ -16,15 +16,16 @@ let value: DeleteMetadataItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `proxy` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether proxy items, such as media optimized versions, should also be deleted. Defaults to false. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplaylistglobals.md b/docs/sdk/models/operations/deleteplaylistglobals.md index a69afaf3..82f9d5c8 100644 --- a/docs/sdk/models/operations/deleteplaylistglobals.md +++ b/docs/sdk/models/operations/deleteplaylistglobals.md @@ -6,16 +6,16 @@ import { DeletePlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeletePlaylistGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeletePlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplaylistitemglobals.md b/docs/sdk/models/operations/deleteplaylistitemglobals.md index ba6e6bc3..9cb9f4bd 100644 --- a/docs/sdk/models/operations/deleteplaylistitemglobals.md +++ b/docs/sdk/models/operations/deleteplaylistitemglobals.md @@ -6,16 +6,16 @@ import { DeletePlaylistItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeletePlaylistItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeletePlaylistItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplaylistitemrequest.md b/docs/sdk/models/operations/deleteplaylistitemrequest.md index 4c58437e..f1375aae 100644 --- a/docs/sdk/models/operations/deleteplaylistitemrequest.md +++ b/docs/sdk/models/operations/deleteplaylistitemrequest.md @@ -15,15 +15,16 @@ let value: DeletePlaylistItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | | `generatorId` | *number* | :heavy_check_mark: | The generator item ID to delete. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplaylistrequest.md b/docs/sdk/models/operations/deleteplaylistrequest.md index e8e8faaa..81a77605 100644 --- a/docs/sdk/models/operations/deleteplaylistrequest.md +++ b/docs/sdk/models/operations/deleteplaylistrequest.md @@ -14,14 +14,15 @@ let value: DeletePlaylistRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplayqueueitemglobals.md b/docs/sdk/models/operations/deleteplayqueueitemglobals.md index 1605899f..7f8faa3d 100644 --- a/docs/sdk/models/operations/deleteplayqueueitemglobals.md +++ b/docs/sdk/models/operations/deleteplayqueueitemglobals.md @@ -6,16 +6,16 @@ import { DeletePlayQueueItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeletePlayQueueItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeletePlayQueueItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteplayqueueitemrequest.md b/docs/sdk/models/operations/deleteplayqueueitemrequest.md index 42192bab..64416ea7 100644 --- a/docs/sdk/models/operations/deleteplayqueueitemrequest.md +++ b/docs/sdk/models/operations/deleteplayqueueitemrequest.md @@ -15,15 +15,16 @@ let value: DeletePlayQueueItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playQueueId` | *number* | :heavy_check_mark: | The ID of the play queue. | | | `playQueueItemId` | *number* | :heavy_check_mark: | The play queue item ID to delete. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletestreamglobals.md b/docs/sdk/models/operations/deletestreamglobals.md index 50665fe2..51d732fa 100644 --- a/docs/sdk/models/operations/deletestreamglobals.md +++ b/docs/sdk/models/operations/deletestreamglobals.md @@ -6,16 +6,16 @@ import { DeleteStreamGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteStreamGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteStreamGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletestreamrequest.md b/docs/sdk/models/operations/deletestreamrequest.md index f4d437eb..9b8fce22 100644 --- a/docs/sdk/models/operations/deletestreamrequest.md +++ b/docs/sdk/models/operations/deletestreamrequest.md @@ -15,15 +15,16 @@ let value: DeleteStreamRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `streamId` | *number* | :heavy_check_mark: | The id of the stream | | | `ext` | *string* | :heavy_check_mark: | This is not a part of this endpoint but documented here to satisfy OpenAPI | | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletesubscriptionglobals.md b/docs/sdk/models/operations/deletesubscriptionglobals.md index ef3ee40a..239da887 100644 --- a/docs/sdk/models/operations/deletesubscriptionglobals.md +++ b/docs/sdk/models/operations/deletesubscriptionglobals.md @@ -6,16 +6,16 @@ import { DeleteSubscriptionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteSubscriptionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DeleteSubscriptionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletesubscriptionrequest.md b/docs/sdk/models/operations/deletesubscriptionrequest.md index 1bd19912..98117bcb 100644 --- a/docs/sdk/models/operations/deletesubscriptionrequest.md +++ b/docs/sdk/models/operations/deletesubscriptionrequest.md @@ -14,14 +14,15 @@ let value: DeleteSubscriptionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `subscriptionId` | *number* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectadsglobals.md b/docs/sdk/models/operations/detectadsglobals.md index 3213eb3b..c6486ff2 100644 --- a/docs/sdk/models/operations/detectadsglobals.md +++ b/docs/sdk/models/operations/detectadsglobals.md @@ -6,16 +6,16 @@ import { DetectAdsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DetectAdsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DetectAdsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectadsrequest.md b/docs/sdk/models/operations/detectadsrequest.md index d79711b3..e3ae620b 100644 --- a/docs/sdk/models/operations/detectadsrequest.md +++ b/docs/sdk/models/operations/detectadsrequest.md @@ -14,14 +14,15 @@ let value: DetectAdsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectcreditsglobals.md b/docs/sdk/models/operations/detectcreditsglobals.md index a522d625..98f14371 100644 --- a/docs/sdk/models/operations/detectcreditsglobals.md +++ b/docs/sdk/models/operations/detectcreditsglobals.md @@ -6,16 +6,16 @@ import { DetectCreditsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DetectCreditsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DetectCreditsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectcreditsrequest.md b/docs/sdk/models/operations/detectcreditsrequest.md index c7b78240..0aeb6868 100644 --- a/docs/sdk/models/operations/detectcreditsrequest.md +++ b/docs/sdk/models/operations/detectcreditsrequest.md @@ -17,16 +17,17 @@ let value: DetectCreditsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `force` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | | `manual` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectintrosglobals.md b/docs/sdk/models/operations/detectintrosglobals.md index c4289cd4..d2a1c404 100644 --- a/docs/sdk/models/operations/detectintrosglobals.md +++ b/docs/sdk/models/operations/detectintrosglobals.md @@ -6,16 +6,16 @@ import { DetectIntrosGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DetectIntrosGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DetectIntrosGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectintrosrequest.md b/docs/sdk/models/operations/detectintrosrequest.md index 521c8879..b2e9138d 100644 --- a/docs/sdk/models/operations/detectintrosrequest.md +++ b/docs/sdk/models/operations/detectintrosrequest.md @@ -16,16 +16,17 @@ let value: DetectIntrosRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `force` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicate whether detection should be re-run | 1 | | `threshold` | *number* | :heavy_minus_sign: | The threshold for determining if content is an intro or not | | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectvoiceactivityglobals.md b/docs/sdk/models/operations/detectvoiceactivityglobals.md index 6ca43e1e..b80923fd 100644 --- a/docs/sdk/models/operations/detectvoiceactivityglobals.md +++ b/docs/sdk/models/operations/detectvoiceactivityglobals.md @@ -6,16 +6,16 @@ import { DetectVoiceActivityGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: DetectVoiceActivityGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: DetectVoiceActivityGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/detectvoiceactivityrequest.md b/docs/sdk/models/operations/detectvoiceactivityrequest.md index cc77ad60..9327637f 100644 --- a/docs/sdk/models/operations/detectvoiceactivityrequest.md +++ b/docs/sdk/models/operations/detectvoiceactivityrequest.md @@ -17,16 +17,17 @@ let value: DetectVoiceActivityRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `force` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicate whether detection should be re-run | 1 | | `manual` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicate whether detection is manually run | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/editmarkerglobals.md b/docs/sdk/models/operations/editmarkerglobals.md index 412341d1..0d424819 100644 --- a/docs/sdk/models/operations/editmarkerglobals.md +++ b/docs/sdk/models/operations/editmarkerglobals.md @@ -6,16 +6,16 @@ import { EditMarkerGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: EditMarkerGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: EditMarkerGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/editmarkerrequest.md b/docs/sdk/models/operations/editmarkerrequest.md index 0994a322..b85c612c 100644 --- a/docs/sdk/models/operations/editmarkerrequest.md +++ b/docs/sdk/models/operations/editmarkerrequest.md @@ -18,16 +18,17 @@ let value: EditMarkerRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `marker` | *string* | :heavy_check_mark: | The id of the marker to edit | | | `type` | *number* | :heavy_check_mark: | The type of marker to edit/create | | diff --git a/docs/sdk/models/operations/editmetadataitemglobals.md b/docs/sdk/models/operations/editmetadataitemglobals.md index 9757e679..222f254c 100644 --- a/docs/sdk/models/operations/editmetadataitemglobals.md +++ b/docs/sdk/models/operations/editmetadataitemglobals.md @@ -6,16 +6,16 @@ import { EditMetadataItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: EditMetadataItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: EditMetadataItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/editmetadataitemrequest.md b/docs/sdk/models/operations/editmetadataitemrequest.md index a3168e1e..1bf0523f 100644 --- a/docs/sdk/models/operations/editmetadataitemrequest.md +++ b/docs/sdk/models/operations/editmetadataitemrequest.md @@ -17,15 +17,16 @@ let value: EditMetadataItemRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string*[] | :heavy_check_mark: | N/A | | | `args` | [operations.EditMetadataItemArgs](../../../sdk/models/operations/editmetadataitemargs.md) | :heavy_minus_sign: | The new values for the metadata item | | \ No newline at end of file diff --git a/docs/sdk/models/operations/editsectionglobals.md b/docs/sdk/models/operations/editsectionglobals.md index 4adda8cf..b226997d 100644 --- a/docs/sdk/models/operations/editsectionglobals.md +++ b/docs/sdk/models/operations/editsectionglobals.md @@ -6,16 +6,16 @@ import { EditSectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: EditSectionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: EditSectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/editsectionrequest.md b/docs/sdk/models/operations/editsectionrequest.md index 13cdee8e..7091512b 100644 --- a/docs/sdk/models/operations/editsectionrequest.md +++ b/docs/sdk/models/operations/editsectionrequest.md @@ -20,16 +20,17 @@ let value: EditSectionRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *string* | :heavy_check_mark: | The section identifier | | | `name` | *string* | :heavy_minus_sign: | The name of the new section | | | `scanner` | *string* | :heavy_minus_sign: | The scanner this section should use | | diff --git a/docs/sdk/models/operations/editsubscriptionpreferencesglobals.md b/docs/sdk/models/operations/editsubscriptionpreferencesglobals.md index 4323ae6f..059e2393 100644 --- a/docs/sdk/models/operations/editsubscriptionpreferencesglobals.md +++ b/docs/sdk/models/operations/editsubscriptionpreferencesglobals.md @@ -6,16 +6,16 @@ import { EditSubscriptionPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: EditSubscriptionPreferencesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: EditSubscriptionPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/editsubscriptionpreferencesrequest.md b/docs/sdk/models/operations/editsubscriptionpreferencesrequest.md index 4e89bfad..7bf79ba3 100644 --- a/docs/sdk/models/operations/editsubscriptionpreferencesrequest.md +++ b/docs/sdk/models/operations/editsubscriptionpreferencesrequest.md @@ -15,15 +15,16 @@ let value: EditSubscriptionPreferencesRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `subscriptionId` | *number* | :heavy_check_mark: | N/A | | | `prefs` | [operations.EditSubscriptionPreferencesPrefs](../../../sdk/models/operations/editsubscriptionpreferencesprefs.md) | :heavy_minus_sign: | N/A | {
"minVideoQuality": 720
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/emptytrashglobals.md b/docs/sdk/models/operations/emptytrashglobals.md index bd387448..1726c471 100644 --- a/docs/sdk/models/operations/emptytrashglobals.md +++ b/docs/sdk/models/operations/emptytrashglobals.md @@ -6,16 +6,16 @@ import { EmptyTrashGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: EmptyTrashGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: EmptyTrashGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/emptytrashrequest.md b/docs/sdk/models/operations/emptytrashrequest.md index 43b41d46..6409ca2b 100644 --- a/docs/sdk/models/operations/emptytrashrequest.md +++ b/docs/sdk/models/operations/emptytrashrequest.md @@ -14,14 +14,15 @@ let value: EmptyTrashRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/enablepapertrailglobals.md b/docs/sdk/models/operations/enablepapertrailglobals.md index 8a6e71a6..f8bb6ead 100644 --- a/docs/sdk/models/operations/enablepapertrailglobals.md +++ b/docs/sdk/models/operations/enablepapertrailglobals.md @@ -6,16 +6,16 @@ import { EnablePapertrailGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: EnablePapertrailGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: EnablePapertrailGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/enablepapertrailrequest.md b/docs/sdk/models/operations/enablepapertrailrequest.md index 644c536c..d1835793 100644 --- a/docs/sdk/models/operations/enablepapertrailrequest.md +++ b/docs/sdk/models/operations/enablepapertrailrequest.md @@ -12,14 +12,15 @@ let value: EnablePapertrailRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `minutes` | *number* | :heavy_minus_sign: | The number of minutes logging should be sent to Papertrail | | \ No newline at end of file diff --git a/docs/sdk/models/operations/generatethumbsglobals.md b/docs/sdk/models/operations/generatethumbsglobals.md index dca40bff..5a89a022 100644 --- a/docs/sdk/models/operations/generatethumbsglobals.md +++ b/docs/sdk/models/operations/generatethumbsglobals.md @@ -6,16 +6,16 @@ import { GenerateThumbsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GenerateThumbsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GenerateThumbsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/generatethumbsrequest.md b/docs/sdk/models/operations/generatethumbsrequest.md index bd36d448..65033942 100644 --- a/docs/sdk/models/operations/generatethumbsrequest.md +++ b/docs/sdk/models/operations/generatethumbsrequest.md @@ -16,15 +16,16 @@ let value: GenerateThumbsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `force` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getalbumsglobals.md b/docs/sdk/models/operations/getalbumsglobals.md index 60518525..5831aa48 100644 --- a/docs/sdk/models/operations/getalbumsglobals.md +++ b/docs/sdk/models/operations/getalbumsglobals.md @@ -6,16 +6,16 @@ import { GetAlbumsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAlbumsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetAlbumsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getalbumsrequest.md b/docs/sdk/models/operations/getalbumsrequest.md index fde65d53..bb61f24e 100644 --- a/docs/sdk/models/operations/getalbumsrequest.md +++ b/docs/sdk/models/operations/getalbumsrequest.md @@ -14,14 +14,15 @@ let value: GetAlbumsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallhubsglobals.md b/docs/sdk/models/operations/getallhubsglobals.md index c732e3bd..52770061 100644 --- a/docs/sdk/models/operations/getallhubsglobals.md +++ b/docs/sdk/models/operations/getallhubsglobals.md @@ -6,16 +6,16 @@ import { GetAllHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAllHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetAllHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallhubsrequest.md b/docs/sdk/models/operations/getallhubsrequest.md index 7681d188..ba04b8ac 100644 --- a/docs/sdk/models/operations/getallhubsrequest.md +++ b/docs/sdk/models/operations/getallhubsrequest.md @@ -15,16 +15,17 @@ let value: GetAllHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | | `onlyTransient` | [shared.BoolInt](../../../sdk/models/shared/boolint.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) | 1 | | `identifier` | *string*[] | :heavy_minus_sign: | If provided, limit to only specified hubs | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallitemleavesglobals.md b/docs/sdk/models/operations/getallitemleavesglobals.md index 71d49e11..d4c12b9c 100644 --- a/docs/sdk/models/operations/getallitemleavesglobals.md +++ b/docs/sdk/models/operations/getallitemleavesglobals.md @@ -6,16 +6,16 @@ import { GetAllItemLeavesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAllItemLeavesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetAllItemLeavesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallitemleavesrequest.md b/docs/sdk/models/operations/getallitemleavesrequest.md index f913b63f..26a4d638 100644 --- a/docs/sdk/models/operations/getallitemleavesrequest.md +++ b/docs/sdk/models/operations/getallitemleavesrequest.md @@ -14,14 +14,15 @@ let value: GetAllItemLeavesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallleavesglobals.md b/docs/sdk/models/operations/getallleavesglobals.md index 0d882d68..278fb734 100644 --- a/docs/sdk/models/operations/getallleavesglobals.md +++ b/docs/sdk/models/operations/getallleavesglobals.md @@ -6,16 +6,16 @@ import { GetAllLeavesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAllLeavesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetAllLeavesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallleavesrequest.md b/docs/sdk/models/operations/getallleavesrequest.md index 42aa5df0..6458f4eb 100644 --- a/docs/sdk/models/operations/getallleavesrequest.md +++ b/docs/sdk/models/operations/getallleavesrequest.md @@ -14,14 +14,15 @@ let value: GetAllLeavesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallsubscriptionsglobals.md b/docs/sdk/models/operations/getallsubscriptionsglobals.md index e3a257b5..30bbda23 100644 --- a/docs/sdk/models/operations/getallsubscriptionsglobals.md +++ b/docs/sdk/models/operations/getallsubscriptionsglobals.md @@ -6,16 +6,16 @@ import { GetAllSubscriptionsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAllSubscriptionsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetAllSubscriptionsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getallsubscriptionsrequest.md b/docs/sdk/models/operations/getallsubscriptionsrequest.md index 9605a40f..3270b53f 100644 --- a/docs/sdk/models/operations/getallsubscriptionsrequest.md +++ b/docs/sdk/models/operations/getallsubscriptionsrequest.md @@ -16,15 +16,16 @@ let value: GetAllSubscriptionsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `includeGrabs` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates whether the active grabs should be included as well | 1 | | `includeStorage` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Compute the storage of recorded items desired by this subscription | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getartsglobals.md b/docs/sdk/models/operations/getartsglobals.md index ec395a6a..daf85609 100644 --- a/docs/sdk/models/operations/getartsglobals.md +++ b/docs/sdk/models/operations/getartsglobals.md @@ -6,16 +6,16 @@ import { GetArtsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetArtsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetArtsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getartsrequest.md b/docs/sdk/models/operations/getartsrequest.md index 9530b968..e3ac4427 100644 --- a/docs/sdk/models/operations/getartsrequest.md +++ b/docs/sdk/models/operations/getartsrequest.md @@ -14,14 +14,15 @@ let value: GetArtsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getaugmentationstatusglobals.md b/docs/sdk/models/operations/getaugmentationstatusglobals.md index 58953dee..68717820 100644 --- a/docs/sdk/models/operations/getaugmentationstatusglobals.md +++ b/docs/sdk/models/operations/getaugmentationstatusglobals.md @@ -6,16 +6,16 @@ import { GetAugmentationStatusGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAugmentationStatusGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetAugmentationStatusGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getaugmentationstatusrequest.md b/docs/sdk/models/operations/getaugmentationstatusrequest.md index 58489fd9..db10a065 100644 --- a/docs/sdk/models/operations/getaugmentationstatusrequest.md +++ b/docs/sdk/models/operations/getaugmentationstatusrequest.md @@ -16,15 +16,16 @@ let value: GetAugmentationStatusRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `augmentationId` | *string* | :heavy_check_mark: | The id of the augmentation | | | `wait` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Wait for augmentation completion before returning | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablegrabbersglobals.md b/docs/sdk/models/operations/getavailablegrabbersglobals.md index b7f98669..0c586bc1 100644 --- a/docs/sdk/models/operations/getavailablegrabbersglobals.md +++ b/docs/sdk/models/operations/getavailablegrabbersglobals.md @@ -6,16 +6,16 @@ import { GetAvailableGrabbersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAvailableGrabbersGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetAvailableGrabbersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablegrabbersrequest.md b/docs/sdk/models/operations/getavailablegrabbersrequest.md index e51ff820..4e3b5283 100644 --- a/docs/sdk/models/operations/getavailablegrabbersrequest.md +++ b/docs/sdk/models/operations/getavailablegrabbersrequest.md @@ -14,14 +14,15 @@ let value: GetAvailableGrabbersRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `protocol` | *string* | :heavy_minus_sign: | Only return grabbers providing this protocol. | livetv | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablesortsglobals.md b/docs/sdk/models/operations/getavailablesortsglobals.md index 7a53ac19..dd2c8c44 100644 --- a/docs/sdk/models/operations/getavailablesortsglobals.md +++ b/docs/sdk/models/operations/getavailablesortsglobals.md @@ -6,16 +6,16 @@ import { GetAvailableSortsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAvailableSortsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetAvailableSortsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailablesortsrequest.md b/docs/sdk/models/operations/getavailablesortsrequest.md index 63f312b3..3c3aec64 100644 --- a/docs/sdk/models/operations/getavailablesortsrequest.md +++ b/docs/sdk/models/operations/getavailablesortsrequest.md @@ -14,14 +14,15 @@ let value: GetAvailableSortsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcategoriesglobals.md b/docs/sdk/models/operations/getcategoriesglobals.md index f1fb13c6..32347d6c 100644 --- a/docs/sdk/models/operations/getcategoriesglobals.md +++ b/docs/sdk/models/operations/getcategoriesglobals.md @@ -6,16 +6,16 @@ import { GetCategoriesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetCategoriesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetCategoriesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcategoriesrequest.md b/docs/sdk/models/operations/getcategoriesrequest.md index aaa31ae4..3cca0a37 100644 --- a/docs/sdk/models/operations/getcategoriesrequest.md +++ b/docs/sdk/models/operations/getcategoriesrequest.md @@ -14,14 +14,15 @@ let value: GetCategoriesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchannelsglobals.md b/docs/sdk/models/operations/getchannelsglobals.md index ad850afe..86205098 100644 --- a/docs/sdk/models/operations/getchannelsglobals.md +++ b/docs/sdk/models/operations/getchannelsglobals.md @@ -6,16 +6,16 @@ import { GetChannelsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetChannelsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetChannelsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchannelsrequest.md b/docs/sdk/models/operations/getchannelsrequest.md index 31b7fa9e..fb9d5ecc 100644 --- a/docs/sdk/models/operations/getchannelsrequest.md +++ b/docs/sdk/models/operations/getchannelsrequest.md @@ -14,14 +14,15 @@ let value: GetChannelsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `lineup` | *string* | :heavy_check_mark: | The URI describing the lineup | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchapterimageglobals.md b/docs/sdk/models/operations/getchapterimageglobals.md index 9d74fa0e..7889022f 100644 --- a/docs/sdk/models/operations/getchapterimageglobals.md +++ b/docs/sdk/models/operations/getchapterimageglobals.md @@ -6,16 +6,16 @@ import { GetChapterImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetChapterImageGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetChapterImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchapterimagerequest.md b/docs/sdk/models/operations/getchapterimagerequest.md index ee3686cc..03b01970 100644 --- a/docs/sdk/models/operations/getchapterimagerequest.md +++ b/docs/sdk/models/operations/getchapterimagerequest.md @@ -15,15 +15,16 @@ let value: GetChapterImageRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `mediaId` | *number* | :heavy_check_mark: | The id of the media item | | | `chapter` | *number* | :heavy_check_mark: | The index of the chapter | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getclusterglobals.md b/docs/sdk/models/operations/getclusterglobals.md index 094b36ad..98dfbcba 100644 --- a/docs/sdk/models/operations/getclusterglobals.md +++ b/docs/sdk/models/operations/getclusterglobals.md @@ -6,16 +6,16 @@ import { GetClusterGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetClusterGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetClusterGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getclusterrequest.md b/docs/sdk/models/operations/getclusterrequest.md index dd9cd1ad..314576f7 100644 --- a/docs/sdk/models/operations/getclusterrequest.md +++ b/docs/sdk/models/operations/getclusterrequest.md @@ -14,14 +14,15 @@ let value: GetClusterRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionimageglobals.md b/docs/sdk/models/operations/getcollectionimageglobals.md index d735e957..2260e574 100644 --- a/docs/sdk/models/operations/getcollectionimageglobals.md +++ b/docs/sdk/models/operations/getcollectionimageglobals.md @@ -6,16 +6,16 @@ import { GetCollectionImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetCollectionImageGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetCollectionImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionimagerequest.md b/docs/sdk/models/operations/getcollectionimagerequest.md index c4fdff39..814a29c4 100644 --- a/docs/sdk/models/operations/getcollectionimagerequest.md +++ b/docs/sdk/models/operations/getcollectionimagerequest.md @@ -15,16 +15,17 @@ let value: GetCollectionImageRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `collectionId` | *number* | :heavy_check_mark: | The collection id | | | `updatedAt` | *number* | :heavy_check_mark: | The update time of the image. Used for busting cache. | | | `composite` | [shared.Composite](../../../sdk/models/shared/composite.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionitemsglobals.md b/docs/sdk/models/operations/getcollectionitemsglobals.md index 68cf9cf0..33da2917 100644 --- a/docs/sdk/models/operations/getcollectionitemsglobals.md +++ b/docs/sdk/models/operations/getcollectionitemsglobals.md @@ -6,16 +6,16 @@ import { GetCollectionItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetCollectionItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetCollectionItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionitemsrequest.md b/docs/sdk/models/operations/getcollectionitemsrequest.md index 57ade285..530ee013 100644 --- a/docs/sdk/models/operations/getcollectionitemsrequest.md +++ b/docs/sdk/models/operations/getcollectionitemsrequest.md @@ -14,14 +14,15 @@ let value: GetCollectionItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `collectionId` | *number* | :heavy_check_mark: | The collection id | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionsglobals.md b/docs/sdk/models/operations/getcollectionsglobals.md index bd89c23d..543c2592 100644 --- a/docs/sdk/models/operations/getcollectionsglobals.md +++ b/docs/sdk/models/operations/getcollectionsglobals.md @@ -6,16 +6,16 @@ import { GetCollectionsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetCollectionsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetCollectionsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcollectionsrequest.md b/docs/sdk/models/operations/getcollectionsrequest.md index 9d43f253..33585b2c 100644 --- a/docs/sdk/models/operations/getcollectionsrequest.md +++ b/docs/sdk/models/operations/getcollectionsrequest.md @@ -14,15 +14,16 @@ let value: GetCollectionsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `mediaQuery` | [shared.MediaQuery](../../../sdk/models/shared/mediaquery.md) | :heavy_minus_sign: | This is a complex query built of several parameters. See [API Info section](#section/API-Info/Media-Queries) for information on building media queries | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcolorsglobals.md b/docs/sdk/models/operations/getcolorsglobals.md index d59e472b..fbb9c47d 100644 --- a/docs/sdk/models/operations/getcolorsglobals.md +++ b/docs/sdk/models/operations/getcolorsglobals.md @@ -6,16 +6,16 @@ import { GetColorsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetColorsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetColorsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcolorsrequest.md b/docs/sdk/models/operations/getcolorsrequest.md index 0f040847..55eae43b 100644 --- a/docs/sdk/models/operations/getcolorsrequest.md +++ b/docs/sdk/models/operations/getcolorsrequest.md @@ -14,14 +14,15 @@ let value: GetColorsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `url` | *string* | :heavy_minus_sign: | Url for image which requires color extraction. Can be relative PMS library path or absolute url. | /library/metadata/217745/art/1718931408 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcommonglobals.md b/docs/sdk/models/operations/getcommonglobals.md index 4e25a364..ac218755 100644 --- a/docs/sdk/models/operations/getcommonglobals.md +++ b/docs/sdk/models/operations/getcommonglobals.md @@ -6,16 +6,16 @@ import { GetCommonGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetCommonGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetCommonGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcommonrequest.md b/docs/sdk/models/operations/getcommonrequest.md index a2d23606..8c5379a5 100644 --- a/docs/sdk/models/operations/getcommonrequest.md +++ b/docs/sdk/models/operations/getcommonrequest.md @@ -14,16 +14,17 @@ let value: GetCommonRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `type` | *number* | :heavy_minus_sign: | Item type | | | `mediaQuery` | [shared.MediaQuery](../../../sdk/models/shared/mediaquery.md) | :heavy_minus_sign: | This is a complex query built of several parameters. See [API Info section](#section/API-Info/Media-Queries) for information on building media queries | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcontinuewatchingglobals.md b/docs/sdk/models/operations/getcontinuewatchingglobals.md index 1c2c6e10..64183f36 100644 --- a/docs/sdk/models/operations/getcontinuewatchingglobals.md +++ b/docs/sdk/models/operations/getcontinuewatchingglobals.md @@ -6,16 +6,16 @@ import { GetContinueWatchingGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetContinueWatchingGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetContinueWatchingGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcontinuewatchingrequest.md b/docs/sdk/models/operations/getcontinuewatchingrequest.md index f4b849e6..04d8d9fe 100644 --- a/docs/sdk/models/operations/getcontinuewatchingrequest.md +++ b/docs/sdk/models/operations/getcontinuewatchingrequest.md @@ -12,14 +12,15 @@ let value: GetContinueWatchingRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountrieslineupsglobals.md b/docs/sdk/models/operations/getcountrieslineupsglobals.md index 8078213b..c643b947 100644 --- a/docs/sdk/models/operations/getcountrieslineupsglobals.md +++ b/docs/sdk/models/operations/getcountrieslineupsglobals.md @@ -6,16 +6,16 @@ import { GetCountriesLineupsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetCountriesLineupsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetCountriesLineupsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountrieslineupsrequest.md b/docs/sdk/models/operations/getcountrieslineupsrequest.md index e195316f..f67005a5 100644 --- a/docs/sdk/models/operations/getcountrieslineupsrequest.md +++ b/docs/sdk/models/operations/getcountrieslineupsrequest.md @@ -15,16 +15,17 @@ let value: GetCountriesLineupsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `country` | *string* | :heavy_check_mark: | 3 letter country code | | | `epgId` | *string* | :heavy_check_mark: | The `providerIdentifier` of the provider | | | `postalCode` | *string* | :heavy_minus_sign: | The postal code for the lineups to fetch | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountryregionsglobals.md b/docs/sdk/models/operations/getcountryregionsglobals.md index 71f4193b..24bf405e 100644 --- a/docs/sdk/models/operations/getcountryregionsglobals.md +++ b/docs/sdk/models/operations/getcountryregionsglobals.md @@ -6,16 +6,16 @@ import { GetCountryRegionsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetCountryRegionsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetCountryRegionsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcountryregionsrequest.md b/docs/sdk/models/operations/getcountryregionsrequest.md index 9663880b..72e15fca 100644 --- a/docs/sdk/models/operations/getcountryregionsrequest.md +++ b/docs/sdk/models/operations/getcountryregionsrequest.md @@ -15,15 +15,16 @@ let value: GetCountryRegionsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `country` | *string* | :heavy_check_mark: | 3 letter country code | | | `epgId` | *string* | :heavy_check_mark: | The `providerIdentifier` of the provider | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdevicedetailsglobals.md b/docs/sdk/models/operations/getdevicedetailsglobals.md index 4fc97c80..a5926579 100644 --- a/docs/sdk/models/operations/getdevicedetailsglobals.md +++ b/docs/sdk/models/operations/getdevicedetailsglobals.md @@ -6,16 +6,16 @@ import { GetDeviceDetailsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetDeviceDetailsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetDeviceDetailsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdevicedetailsrequest.md b/docs/sdk/models/operations/getdevicedetailsrequest.md index 7e5ce6e7..23d86ade 100644 --- a/docs/sdk/models/operations/getdevicedetailsrequest.md +++ b/docs/sdk/models/operations/getdevicedetailsrequest.md @@ -14,14 +14,15 @@ let value: GetDeviceDetailsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdeviceschannelsglobals.md b/docs/sdk/models/operations/getdeviceschannelsglobals.md index 94a5f659..a723acb2 100644 --- a/docs/sdk/models/operations/getdeviceschannelsglobals.md +++ b/docs/sdk/models/operations/getdeviceschannelsglobals.md @@ -6,16 +6,16 @@ import { GetDevicesChannelsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetDevicesChannelsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetDevicesChannelsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdeviceschannelsrequest.md b/docs/sdk/models/operations/getdeviceschannelsrequest.md index 40dc0445..d6875740 100644 --- a/docs/sdk/models/operations/getdeviceschannelsrequest.md +++ b/docs/sdk/models/operations/getdeviceschannelsrequest.md @@ -14,14 +14,15 @@ let value: GetDevicesChannelsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueglobals.md b/docs/sdk/models/operations/getdownloadqueueglobals.md index 56807011..b329c02b 100644 --- a/docs/sdk/models/operations/getdownloadqueueglobals.md +++ b/docs/sdk/models/operations/getdownloadqueueglobals.md @@ -6,16 +6,16 @@ import { GetDownloadQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetDownloadQueueGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetDownloadQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueitemsglobals.md b/docs/sdk/models/operations/getdownloadqueueitemsglobals.md index 445fc2d8..266e9e52 100644 --- a/docs/sdk/models/operations/getdownloadqueueitemsglobals.md +++ b/docs/sdk/models/operations/getdownloadqueueitemsglobals.md @@ -6,16 +6,16 @@ import { GetDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetDownloadQueueItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueueitemsrequest.md b/docs/sdk/models/operations/getdownloadqueueitemsrequest.md index 52bc02f7..20fa6f36 100644 --- a/docs/sdk/models/operations/getdownloadqueueitemsrequest.md +++ b/docs/sdk/models/operations/getdownloadqueueitemsrequest.md @@ -19,15 +19,16 @@ let value: GetDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `queueId` | *number* | :heavy_check_mark: | The queue id | | | `itemId` | *number*[] | :heavy_check_mark: | The item ids | [
32,
345,
23
] | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueuemediaglobals.md b/docs/sdk/models/operations/getdownloadqueuemediaglobals.md index a54b28cf..7ddeb51b 100644 --- a/docs/sdk/models/operations/getdownloadqueuemediaglobals.md +++ b/docs/sdk/models/operations/getdownloadqueuemediaglobals.md @@ -6,16 +6,16 @@ import { GetDownloadQueueMediaGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetDownloadQueueMediaGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetDownloadQueueMediaGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueuemediarequest.md b/docs/sdk/models/operations/getdownloadqueuemediarequest.md index 810c0f1f..e5b3e5b4 100644 --- a/docs/sdk/models/operations/getdownloadqueuemediarequest.md +++ b/docs/sdk/models/operations/getdownloadqueuemediarequest.md @@ -15,15 +15,16 @@ let value: GetDownloadQueueMediaRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `queueId` | *number* | :heavy_check_mark: | The queue id | | | `itemId` | *number* | :heavy_check_mark: | The item ids | 32 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdownloadqueuerequest.md b/docs/sdk/models/operations/getdownloadqueuerequest.md index e27def3c..018676eb 100644 --- a/docs/sdk/models/operations/getdownloadqueuerequest.md +++ b/docs/sdk/models/operations/getdownloadqueuerequest.md @@ -14,14 +14,15 @@ let value: GetDownloadQueueRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `queueId` | *number* | :heavy_check_mark: | The queue id | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdvrglobals.md b/docs/sdk/models/operations/getdvrglobals.md index 13b02ece..36e08393 100644 --- a/docs/sdk/models/operations/getdvrglobals.md +++ b/docs/sdk/models/operations/getdvrglobals.md @@ -6,16 +6,16 @@ import { GetDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetDVRGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdvrrequest.md b/docs/sdk/models/operations/getdvrrequest.md index e94fd63c..c5b207f9 100644 --- a/docs/sdk/models/operations/getdvrrequest.md +++ b/docs/sdk/models/operations/getdvrrequest.md @@ -14,14 +14,15 @@ let value: GetDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getextrasglobals.md b/docs/sdk/models/operations/getextrasglobals.md index ad0ee784..44c38242 100644 --- a/docs/sdk/models/operations/getextrasglobals.md +++ b/docs/sdk/models/operations/getextrasglobals.md @@ -6,16 +6,16 @@ import { GetExtrasGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetExtrasGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetExtrasGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getextrasrequest.md b/docs/sdk/models/operations/getextrasrequest.md index 58da1ea1..d5b4c4e2 100644 --- a/docs/sdk/models/operations/getextrasrequest.md +++ b/docs/sdk/models/operations/getextrasrequest.md @@ -14,14 +14,15 @@ let value: GetExtrasRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfileglobals.md b/docs/sdk/models/operations/getfileglobals.md index 526fcca4..8bacf935 100644 --- a/docs/sdk/models/operations/getfileglobals.md +++ b/docs/sdk/models/operations/getfileglobals.md @@ -6,16 +6,16 @@ import { GetFileGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetFileGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetFileGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfilerequest.md b/docs/sdk/models/operations/getfilerequest.md index 4373e58d..cf7715e5 100644 --- a/docs/sdk/models/operations/getfilerequest.md +++ b/docs/sdk/models/operations/getfilerequest.md @@ -14,15 +14,16 @@ let value: GetFileRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `url` | *string* | :heavy_minus_sign: | The bundle url, typically starting with `metadata://` or `media://` | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfirstcharactersglobals.md b/docs/sdk/models/operations/getfirstcharactersglobals.md index b23f2ddf..708b0082 100644 --- a/docs/sdk/models/operations/getfirstcharactersglobals.md +++ b/docs/sdk/models/operations/getfirstcharactersglobals.md @@ -6,16 +6,16 @@ import { GetFirstCharactersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetFirstCharactersGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetFirstCharactersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfirstcharactersrequest.md b/docs/sdk/models/operations/getfirstcharactersrequest.md index 9d6f0f1c..a0f4161f 100644 --- a/docs/sdk/models/operations/getfirstcharactersrequest.md +++ b/docs/sdk/models/operations/getfirstcharactersrequest.md @@ -14,16 +14,17 @@ let value: GetFirstCharactersRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `type` | *number* | :heavy_minus_sign: | The metadata type to filter on | | | `sort` | *number* | :heavy_minus_sign: | The metadata type to filter on | | diff --git a/docs/sdk/models/operations/getfoldersglobals.md b/docs/sdk/models/operations/getfoldersglobals.md index 920238cb..a2f29b05 100644 --- a/docs/sdk/models/operations/getfoldersglobals.md +++ b/docs/sdk/models/operations/getfoldersglobals.md @@ -6,16 +6,16 @@ import { GetFoldersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetFoldersGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetFoldersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getfoldersrequest.md b/docs/sdk/models/operations/getfoldersrequest.md index 0f869440..0774ffe7 100644 --- a/docs/sdk/models/operations/getfoldersrequest.md +++ b/docs/sdk/models/operations/getfoldersrequest.md @@ -14,14 +14,15 @@ let value: GetFoldersRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethistoryitemglobals.md b/docs/sdk/models/operations/gethistoryitemglobals.md index 96f284c8..0794705d 100644 --- a/docs/sdk/models/operations/gethistoryitemglobals.md +++ b/docs/sdk/models/operations/gethistoryitemglobals.md @@ -6,16 +6,16 @@ import { GetHistoryItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetHistoryItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetHistoryItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethistoryitemrequest.md b/docs/sdk/models/operations/gethistoryitemrequest.md index a042904f..95c1f610 100644 --- a/docs/sdk/models/operations/gethistoryitemrequest.md +++ b/docs/sdk/models/operations/gethistoryitemrequest.md @@ -14,14 +14,15 @@ let value: GetHistoryItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `historyId` | *number* | :heavy_check_mark: | The id of the history item (the `historyKey` from above) | | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethubitemsglobals.md b/docs/sdk/models/operations/gethubitemsglobals.md index ce712477..361ec404 100644 --- a/docs/sdk/models/operations/gethubitemsglobals.md +++ b/docs/sdk/models/operations/gethubitemsglobals.md @@ -6,16 +6,16 @@ import { GetHubItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetHubItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetHubItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethubitemsrequest.md b/docs/sdk/models/operations/gethubitemsrequest.md index 8c1a58f6..218b3f3a 100644 --- a/docs/sdk/models/operations/gethubitemsrequest.md +++ b/docs/sdk/models/operations/gethubitemsrequest.md @@ -14,15 +14,16 @@ let value: GetHubItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | | `identifier` | *string*[] | :heavy_check_mark: | If provided, limit to only specified hubs | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getimagefrombifglobals.md b/docs/sdk/models/operations/getimagefrombifglobals.md index c0dc9e2b..88982b4f 100644 --- a/docs/sdk/models/operations/getimagefrombifglobals.md +++ b/docs/sdk/models/operations/getimagefrombifglobals.md @@ -6,16 +6,16 @@ import { GetImageFromBifGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetImageFromBifGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetImageFromBifGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getimagefrombifrequest.md b/docs/sdk/models/operations/getimagefrombifrequest.md index c18a8566..b0bd8eb7 100644 --- a/docs/sdk/models/operations/getimagefrombifrequest.md +++ b/docs/sdk/models/operations/getimagefrombifrequest.md @@ -16,16 +16,17 @@ let value: GetImageFromBifRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `partId` | *number* | :heavy_check_mark: | The part id who's index is to be fetched | | | `index` | [operations.GetImageFromBifIndex](../../../sdk/models/operations/getimagefrombifindex.md) | :heavy_check_mark: | The type of index to grab. | | | `offset` | *number* | :heavy_check_mark: | The offset to seek in ms. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getimageglobals.md b/docs/sdk/models/operations/getimageglobals.md index 0f8e81fa..4a3704ec 100644 --- a/docs/sdk/models/operations/getimageglobals.md +++ b/docs/sdk/models/operations/getimageglobals.md @@ -6,16 +6,16 @@ import { GetImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetImageGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getimagerequest.md b/docs/sdk/models/operations/getimagerequest.md index bc1d8a79..b67948a5 100644 --- a/docs/sdk/models/operations/getimagerequest.md +++ b/docs/sdk/models/operations/getimagerequest.md @@ -21,16 +21,17 @@ let value: GetImageRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `topLeft` | *string* | :heavy_minus_sign: | The base color (hex) for the top left quadrant. | 3f280a | | `topRight` | *string* | :heavy_minus_sign: | The base color (hex) for the top right quadrant. | 6b4713 | | `bottomRight` | *string* | :heavy_minus_sign: | The base color (hex) for the bottom right quadrant. | 0f2a43 | diff --git a/docs/sdk/models/operations/getitemartworkglobals.md b/docs/sdk/models/operations/getitemartworkglobals.md index eca62be7..2bde4b35 100644 --- a/docs/sdk/models/operations/getitemartworkglobals.md +++ b/docs/sdk/models/operations/getitemartworkglobals.md @@ -6,16 +6,16 @@ import { GetItemArtworkGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetItemArtworkGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetItemArtworkGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemartworkrequest.md b/docs/sdk/models/operations/getitemartworkrequest.md index b67054d7..6a020f56 100644 --- a/docs/sdk/models/operations/getitemartworkrequest.md +++ b/docs/sdk/models/operations/getitemartworkrequest.md @@ -16,16 +16,17 @@ let value: GetItemArtworkRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `element` | [operations.GetItemArtworkElement](../../../sdk/models/operations/getitemartworkelement.md) | :heavy_check_mark: | N/A | | | `timestamp` | *number* | :heavy_check_mark: | A timestamp on the element used for cache management in the client | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemdecisionglobals.md b/docs/sdk/models/operations/getitemdecisionglobals.md index 77463073..55a1327b 100644 --- a/docs/sdk/models/operations/getitemdecisionglobals.md +++ b/docs/sdk/models/operations/getitemdecisionglobals.md @@ -6,16 +6,16 @@ import { GetItemDecisionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetItemDecisionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetItemDecisionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemdecisionrequest.md b/docs/sdk/models/operations/getitemdecisionrequest.md index 81eac6e2..a0f91353 100644 --- a/docs/sdk/models/operations/getitemdecisionrequest.md +++ b/docs/sdk/models/operations/getitemdecisionrequest.md @@ -15,15 +15,16 @@ let value: GetItemDecisionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `queueId` | *number* | :heavy_check_mark: | The queue id | | | `itemId` | *number* | :heavy_check_mark: | The item ids | 32 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemtreeglobals.md b/docs/sdk/models/operations/getitemtreeglobals.md index 61369636..e36123d8 100644 --- a/docs/sdk/models/operations/getitemtreeglobals.md +++ b/docs/sdk/models/operations/getitemtreeglobals.md @@ -6,16 +6,16 @@ import { GetItemTreeGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetItemTreeGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetItemTreeGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getitemtreerequest.md b/docs/sdk/models/operations/getitemtreerequest.md index f1bb7dcc..3a192552 100644 --- a/docs/sdk/models/operations/getitemtreerequest.md +++ b/docs/sdk/models/operations/getitemtreerequest.md @@ -14,14 +14,15 @@ let value: GetItemTreeRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibrarydetailsglobals.md b/docs/sdk/models/operations/getlibrarydetailsglobals.md index 57c4cc2a..ff371756 100644 --- a/docs/sdk/models/operations/getlibrarydetailsglobals.md +++ b/docs/sdk/models/operations/getlibrarydetailsglobals.md @@ -6,16 +6,16 @@ import { GetLibraryDetailsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryDetailsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetLibraryDetailsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibrarydetailsrequest.md b/docs/sdk/models/operations/getlibrarydetailsrequest.md index 0b2a5749..caaac511 100644 --- a/docs/sdk/models/operations/getlibrarydetailsrequest.md +++ b/docs/sdk/models/operations/getlibrarydetailsrequest.md @@ -16,15 +16,16 @@ let value: GetLibraryDetailsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *string* | :heavy_check_mark: | The section identifier | | | `includeDetails` | [shared.BoolInt](../../../sdk/models/shared/boolint.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. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibraryitemsglobals.md b/docs/sdk/models/operations/getlibraryitemsglobals.md index 85dec377..3ebf6ff1 100644 --- a/docs/sdk/models/operations/getlibraryitemsglobals.md +++ b/docs/sdk/models/operations/getlibraryitemsglobals.md @@ -6,16 +6,16 @@ import { GetLibraryItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetLibraryItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibraryitemsrequest.md b/docs/sdk/models/operations/getlibraryitemsrequest.md index b9ce472f..6211fa61 100644 --- a/docs/sdk/models/operations/getlibraryitemsrequest.md +++ b/docs/sdk/models/operations/getlibraryitemsrequest.md @@ -12,14 +12,15 @@ let value: GetLibraryItemsRequest = {}; | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `mediaQuery` | [shared.MediaQuery](../../../sdk/models/shared/mediaquery.md) | :heavy_minus_sign: | This is a complex query built of several parameters. See [API Info section](#section/API-Info/Media-Queries) for information on building media queries | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibrarymatchesglobals.md b/docs/sdk/models/operations/getlibrarymatchesglobals.md index 18804430..a3010fb3 100644 --- a/docs/sdk/models/operations/getlibrarymatchesglobals.md +++ b/docs/sdk/models/operations/getlibrarymatchesglobals.md @@ -6,16 +6,16 @@ import { GetLibraryMatchesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryMatchesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetLibraryMatchesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibrarymatchesrequest.md b/docs/sdk/models/operations/getlibrarymatchesrequest.md index 6ea83d76..06fc253b 100644 --- a/docs/sdk/models/operations/getlibrarymatchesrequest.md +++ b/docs/sdk/models/operations/getlibrarymatchesrequest.md @@ -17,16 +17,17 @@ let value: GetLibraryMatchesRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `type` | *number* | :heavy_minus_sign: | The metadata type to filter by | | | `includeFullMetadata` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | | `includeAncestorMetadata` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | diff --git a/docs/sdk/models/operations/getlineupchannelsglobals.md b/docs/sdk/models/operations/getlineupchannelsglobals.md index 320338d5..668652ca 100644 --- a/docs/sdk/models/operations/getlineupchannelsglobals.md +++ b/docs/sdk/models/operations/getlineupchannelsglobals.md @@ -6,16 +6,16 @@ import { GetLineupChannelsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLineupChannelsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetLineupChannelsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineupchannelsrequest.md b/docs/sdk/models/operations/getlineupchannelsrequest.md index 104ec93f..e052cbe8 100644 --- a/docs/sdk/models/operations/getlineupchannelsrequest.md +++ b/docs/sdk/models/operations/getlineupchannelsrequest.md @@ -14,14 +14,15 @@ let value: GetLineupChannelsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `lineup` | *string*[] | :heavy_check_mark: | The URIs describing the lineups | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineupglobals.md b/docs/sdk/models/operations/getlineupglobals.md index 11156b2c..c4ba0b82 100644 --- a/docs/sdk/models/operations/getlineupglobals.md +++ b/docs/sdk/models/operations/getlineupglobals.md @@ -6,16 +6,16 @@ import { GetLineupGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLineupGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetLineupGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlineuprequest.md b/docs/sdk/models/operations/getlineuprequest.md index 0f2e71fc..76b68cf5 100644 --- a/docs/sdk/models/operations/getlineuprequest.md +++ b/docs/sdk/models/operations/getlineuprequest.md @@ -6,7 +6,7 @@ import { GetLineupRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLineupRequest = { - device: "Mobile", + deviceQueryParameter: "", lineupGroup: "", }; ``` @@ -15,15 +15,16 @@ let value: GetLineupRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | -| `device` | *string* | :heavy_check_mark: | The URI describing the device | | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `deviceQueryParameter` | *string* | :heavy_check_mark: | The URI describing the device | | | `lineupGroup` | *string* | :heavy_check_mark: | The URI describing the lineupGroup | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlivetvsessionglobals.md b/docs/sdk/models/operations/getlivetvsessionglobals.md index 204842b1..65d81fa7 100644 --- a/docs/sdk/models/operations/getlivetvsessionglobals.md +++ b/docs/sdk/models/operations/getlivetvsessionglobals.md @@ -6,16 +6,16 @@ import { GetLiveTVSessionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLiveTVSessionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetLiveTVSessionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlivetvsessionrequest.md b/docs/sdk/models/operations/getlivetvsessionrequest.md index 388df920..075df5bd 100644 --- a/docs/sdk/models/operations/getlivetvsessionrequest.md +++ b/docs/sdk/models/operations/getlivetvsessionrequest.md @@ -14,14 +14,15 @@ let value: GetLiveTVSessionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sessionId` | *string* | :heavy_check_mark: | The session id | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmediapartglobals.md b/docs/sdk/models/operations/getmediapartglobals.md index 139464f7..15a61b73 100644 --- a/docs/sdk/models/operations/getmediapartglobals.md +++ b/docs/sdk/models/operations/getmediapartglobals.md @@ -6,16 +6,16 @@ import { GetMediaPartGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMediaPartGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetMediaPartGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmediapartrequest.md b/docs/sdk/models/operations/getmediapartrequest.md index 7040f960..9d13ef92 100644 --- a/docs/sdk/models/operations/getmediapartrequest.md +++ b/docs/sdk/models/operations/getmediapartrequest.md @@ -18,16 +18,17 @@ let value: GetMediaPartRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `partId` | *number* | :heavy_check_mark: | The part id who's index is to be fetched | | | `changestamp` | *number* | :heavy_check_mark: | The changestamp of the part; used for busting potential caches. Provided in the `key` for the part | | | `filename` | *string* | :heavy_check_mark: | A generic filename used for a client media stack which relies on the extension in the request. Provided in the `key` for the part | | diff --git a/docs/sdk/models/operations/getmetadatahubsglobals.md b/docs/sdk/models/operations/getmetadatahubsglobals.md index 1ccec5e8..158df4c7 100644 --- a/docs/sdk/models/operations/getmetadatahubsglobals.md +++ b/docs/sdk/models/operations/getmetadatahubsglobals.md @@ -6,16 +6,16 @@ import { GetMetadataHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetadataHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetMetadataHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmetadatahubsrequest.md b/docs/sdk/models/operations/getmetadatahubsrequest.md index 6e58bfd5..2a10a843 100644 --- a/docs/sdk/models/operations/getmetadatahubsrequest.md +++ b/docs/sdk/models/operations/getmetadatahubsrequest.md @@ -16,16 +16,17 @@ let value: GetMetadataHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `metadataId` | *number* | :heavy_check_mark: | The metadata ID for the hubs to fetch | | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | | `onlyTransient` | [shared.BoolInt](../../../sdk/models/shared/boolint.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) | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmetadataitemglobals.md b/docs/sdk/models/operations/getmetadataitemglobals.md index 269a9a38..b64eee6d 100644 --- a/docs/sdk/models/operations/getmetadataitemglobals.md +++ b/docs/sdk/models/operations/getmetadataitemglobals.md @@ -6,16 +6,16 @@ import { GetMetadataItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetadataItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetMetadataItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmetadataitemrequest.md b/docs/sdk/models/operations/getmetadataitemrequest.md index 822393dd..f099aa24 100644 --- a/docs/sdk/models/operations/getmetadataitemrequest.md +++ b/docs/sdk/models/operations/getmetadataitemrequest.md @@ -23,16 +23,17 @@ let value: GetMetadataItemRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string*[] | :heavy_check_mark: | N/A | | | `asyncCheckFiles` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Determines if file check should be performed asynchronously. An activity is created to indicate progress. Default is false. | 1 | | `asyncRefreshLocalMediaAgent` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Determines if local media agent refresh should be performed asynchronously. An activity is created to indicate progress. Default is false. | 1 | diff --git a/docs/sdk/models/operations/getnotificationsglobals.md b/docs/sdk/models/operations/getnotificationsglobals.md index a580cc5b..e83fb924 100644 --- a/docs/sdk/models/operations/getnotificationsglobals.md +++ b/docs/sdk/models/operations/getnotificationsglobals.md @@ -6,16 +6,16 @@ import { GetNotificationsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetNotificationsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetNotificationsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getnotificationsrequest.md b/docs/sdk/models/operations/getnotificationsrequest.md index 6b36c4e5..3dd388aa 100644 --- a/docs/sdk/models/operations/getnotificationsrequest.md +++ b/docs/sdk/models/operations/getnotificationsrequest.md @@ -12,14 +12,15 @@ let value: GetNotificationsRequest = {}; | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `filter` | *string*[] | :heavy_minus_sign: | By default, all events except logs are sent. A rich filtering mechanism is provided to allow clients to opt into or out of each event type using the `filters` parameter. For example:

- `filters=-log`: All event types except logs (the default).
- `filters=foo,bar`: Only the foo and bar event types.
- `filters=`: All events types.
- `filters=-foo,bar`: All event types except foo and bar.
| | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpartindexglobals.md b/docs/sdk/models/operations/getpartindexglobals.md index 0032eedc..c6ee7046 100644 --- a/docs/sdk/models/operations/getpartindexglobals.md +++ b/docs/sdk/models/operations/getpartindexglobals.md @@ -6,16 +6,16 @@ import { GetPartIndexGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPartIndexGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPartIndexGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpartindexrequest.md b/docs/sdk/models/operations/getpartindexrequest.md index f72f3c58..da1714a4 100644 --- a/docs/sdk/models/operations/getpartindexrequest.md +++ b/docs/sdk/models/operations/getpartindexrequest.md @@ -15,16 +15,17 @@ let value: GetPartIndexRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `partId` | *number* | :heavy_check_mark: | The part id who's index is to be fetched | | | `index` | [operations.GetPartIndexIndex](../../../sdk/models/operations/getpartindexindex.md) | :heavy_check_mark: | The type of index to grab. | | | `interval` | *number* | :heavy_minus_sign: | The interval between images to return in ms. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpersonglobals.md b/docs/sdk/models/operations/getpersonglobals.md index b19d90fa..443e98a2 100644 --- a/docs/sdk/models/operations/getpersonglobals.md +++ b/docs/sdk/models/operations/getpersonglobals.md @@ -6,16 +6,16 @@ import { GetPersonGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPersonGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPersonGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpersonrequest.md b/docs/sdk/models/operations/getpersonrequest.md index 69dd7a2a..8c8a7657 100644 --- a/docs/sdk/models/operations/getpersonrequest.md +++ b/docs/sdk/models/operations/getpersonrequest.md @@ -14,14 +14,15 @@ let value: GetPersonRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `personId` | *string* | :heavy_check_mark: | Either the PMS tag `id` of the person or `tagKey` of the actor. Note the `tagKey` is the hex portion of the plex guid for the actor | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorglobals.md b/docs/sdk/models/operations/getplaylistgeneratorglobals.md index 17e9f2d4..08d11476 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorglobals.md +++ b/docs/sdk/models/operations/getplaylistgeneratorglobals.md @@ -6,16 +6,16 @@ import { GetPlaylistGeneratorGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistGeneratorGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPlaylistGeneratorGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratoritemsglobals.md b/docs/sdk/models/operations/getplaylistgeneratoritemsglobals.md index 4fe09ac9..cf65b188 100644 --- a/docs/sdk/models/operations/getplaylistgeneratoritemsglobals.md +++ b/docs/sdk/models/operations/getplaylistgeneratoritemsglobals.md @@ -6,16 +6,16 @@ import { GetPlaylistGeneratorItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistGeneratorItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPlaylistGeneratorItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratoritemsrequest.md b/docs/sdk/models/operations/getplaylistgeneratoritemsrequest.md index cecd5018..617d5acf 100644 --- a/docs/sdk/models/operations/getplaylistgeneratoritemsrequest.md +++ b/docs/sdk/models/operations/getplaylistgeneratoritemsrequest.md @@ -15,15 +15,16 @@ let value: GetPlaylistGeneratorItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | | `generatorId` | *number* | :heavy_check_mark: | The generator item ID to delete. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorrequest.md b/docs/sdk/models/operations/getplaylistgeneratorrequest.md index c11d1757..910d577a 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorrequest.md +++ b/docs/sdk/models/operations/getplaylistgeneratorrequest.md @@ -15,15 +15,16 @@ let value: GetPlaylistGeneratorRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | | `generatorId` | *number* | :heavy_check_mark: | The generator item ID to delete. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorsglobals.md b/docs/sdk/models/operations/getplaylistgeneratorsglobals.md index a46f4083..98bdd477 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorsglobals.md +++ b/docs/sdk/models/operations/getplaylistgeneratorsglobals.md @@ -6,16 +6,16 @@ import { GetPlaylistGeneratorsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistGeneratorsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPlaylistGeneratorsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistgeneratorsrequest.md b/docs/sdk/models/operations/getplaylistgeneratorsrequest.md index 28ee433a..a98a0db4 100644 --- a/docs/sdk/models/operations/getplaylistgeneratorsrequest.md +++ b/docs/sdk/models/operations/getplaylistgeneratorsrequest.md @@ -14,14 +14,15 @@ let value: GetPlaylistGeneratorsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistglobals.md b/docs/sdk/models/operations/getplaylistglobals.md index 875ea03d..190fe1e0 100644 --- a/docs/sdk/models/operations/getplaylistglobals.md +++ b/docs/sdk/models/operations/getplaylistglobals.md @@ -6,16 +6,16 @@ import { GetPlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistitemsglobals.md b/docs/sdk/models/operations/getplaylistitemsglobals.md index c019ecd6..9d50d7c8 100644 --- a/docs/sdk/models/operations/getplaylistitemsglobals.md +++ b/docs/sdk/models/operations/getplaylistitemsglobals.md @@ -6,16 +6,16 @@ import { GetPlaylistItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPlaylistItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistitemsrequest.md b/docs/sdk/models/operations/getplaylistitemsrequest.md index ce57a842..5e531de5 100644 --- a/docs/sdk/models/operations/getplaylistitemsrequest.md +++ b/docs/sdk/models/operations/getplaylistitemsrequest.md @@ -14,15 +14,16 @@ let value: GetPlaylistItemsRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | | `type` | *number*[] | :heavy_minus_sign: | The metadata types of the item to return. Values past the first are only used in fetching items from the background processing playlist. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistrequest.md b/docs/sdk/models/operations/getplaylistrequest.md index 2f0e468f..0cf19383 100644 --- a/docs/sdk/models/operations/getplaylistrequest.md +++ b/docs/sdk/models/operations/getplaylistrequest.md @@ -14,14 +14,15 @@ let value: GetPlaylistRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplayqueueglobals.md b/docs/sdk/models/operations/getplayqueueglobals.md index 210cb3b4..471748e0 100644 --- a/docs/sdk/models/operations/getplayqueueglobals.md +++ b/docs/sdk/models/operations/getplayqueueglobals.md @@ -6,16 +6,16 @@ import { GetPlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlayQueueGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplayqueuerequest.md b/docs/sdk/models/operations/getplayqueuerequest.md index e01550a8..88ab6bbf 100644 --- a/docs/sdk/models/operations/getplayqueuerequest.md +++ b/docs/sdk/models/operations/getplayqueuerequest.md @@ -18,16 +18,17 @@ let value: GetPlayQueueRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playQueueId` | *number* | :heavy_check_mark: | The ID of the play queue. | | | `own` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | If the server should transfer ownership to the requesting client (used in remote control scenarios). | 1 | | `center` | *string* | :heavy_minus_sign: | The play queue item ID for the center of the window - this doesn't change the current selected item. | | diff --git a/docs/sdk/models/operations/getpostplayhubsglobals.md b/docs/sdk/models/operations/getpostplayhubsglobals.md index 8c6137c8..f4b95440 100644 --- a/docs/sdk/models/operations/getpostplayhubsglobals.md +++ b/docs/sdk/models/operations/getpostplayhubsglobals.md @@ -6,16 +6,16 @@ import { GetPostplayHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPostplayHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPostplayHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpostplayhubsrequest.md b/docs/sdk/models/operations/getpostplayhubsrequest.md index 3c983105..9602d51f 100644 --- a/docs/sdk/models/operations/getpostplayhubsrequest.md +++ b/docs/sdk/models/operations/getpostplayhubsrequest.md @@ -16,16 +16,17 @@ let value: GetPostplayHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `metadataId` | *number* | :heavy_check_mark: | The metadata ID for the hubs to fetch | | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | | `onlyTransient` | [shared.BoolInt](../../../sdk/models/shared/boolint.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) | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpreferenceglobals.md b/docs/sdk/models/operations/getpreferenceglobals.md index 76baa731..bb0aa024 100644 --- a/docs/sdk/models/operations/getpreferenceglobals.md +++ b/docs/sdk/models/operations/getpreferenceglobals.md @@ -6,16 +6,16 @@ import { GetPreferenceGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPreferenceGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPreferenceGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpreferencerequest.md b/docs/sdk/models/operations/getpreferencerequest.md index 48ed3ed5..cec10342 100644 --- a/docs/sdk/models/operations/getpreferencerequest.md +++ b/docs/sdk/models/operations/getpreferencerequest.md @@ -12,14 +12,15 @@ let value: GetPreferenceRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `id` | *string* | :heavy_minus_sign: | The preference to fetch | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpromotedhubsglobals.md b/docs/sdk/models/operations/getpromotedhubsglobals.md index 218d9ff8..a7a7ad5b 100644 --- a/docs/sdk/models/operations/getpromotedhubsglobals.md +++ b/docs/sdk/models/operations/getpromotedhubsglobals.md @@ -6,16 +6,16 @@ import { GetPromotedHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPromotedHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetPromotedHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpromotedhubsrequest.md b/docs/sdk/models/operations/getpromotedhubsrequest.md index 97ba7f1a..3bbd184f 100644 --- a/docs/sdk/models/operations/getpromotedhubsrequest.md +++ b/docs/sdk/models/operations/getpromotedhubsrequest.md @@ -12,14 +12,15 @@ let value: GetPromotedHubsRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrandomartworkglobals.md b/docs/sdk/models/operations/getrandomartworkglobals.md index ca62d686..0be4460a 100644 --- a/docs/sdk/models/operations/getrandomartworkglobals.md +++ b/docs/sdk/models/operations/getrandomartworkglobals.md @@ -6,16 +6,16 @@ import { GetRandomArtworkGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRandomArtworkGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetRandomArtworkGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrandomartworkrequest.md b/docs/sdk/models/operations/getrandomartworkrequest.md index a162341c..682ace05 100644 --- a/docs/sdk/models/operations/getrandomartworkrequest.md +++ b/docs/sdk/models/operations/getrandomartworkrequest.md @@ -17,14 +17,15 @@ let value: GetRandomArtworkRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sections` | *number*[] | :heavy_minus_sign: | The sections for which to fetch artwork. | [
5,
6
] | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrelatedhubsglobals.md b/docs/sdk/models/operations/getrelatedhubsglobals.md index cc9e3c72..e4863401 100644 --- a/docs/sdk/models/operations/getrelatedhubsglobals.md +++ b/docs/sdk/models/operations/getrelatedhubsglobals.md @@ -6,16 +6,16 @@ import { GetRelatedHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRelatedHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetRelatedHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrelatedhubsrequest.md b/docs/sdk/models/operations/getrelatedhubsrequest.md index 51fef1a9..a59f0574 100644 --- a/docs/sdk/models/operations/getrelatedhubsrequest.md +++ b/docs/sdk/models/operations/getrelatedhubsrequest.md @@ -16,16 +16,17 @@ let value: GetRelatedHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `metadataId` | *number* | :heavy_check_mark: | The metadata ID for the hubs to fetch | | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | | `onlyTransient` | [shared.BoolInt](../../../sdk/models/shared/boolint.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) | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrelateditemsglobals.md b/docs/sdk/models/operations/getrelateditemsglobals.md index 59987179..7992d065 100644 --- a/docs/sdk/models/operations/getrelateditemsglobals.md +++ b/docs/sdk/models/operations/getrelateditemsglobals.md @@ -6,16 +6,16 @@ import { GetRelatedItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRelatedItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetRelatedItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getrelateditemsrequest.md b/docs/sdk/models/operations/getrelateditemsrequest.md index 731e0fc8..889939b4 100644 --- a/docs/sdk/models/operations/getrelateditemsrequest.md +++ b/docs/sdk/models/operations/getrelateditemsrequest.md @@ -14,14 +14,15 @@ let value: GetRelatedItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionfiltersglobals.md b/docs/sdk/models/operations/getsectionfiltersglobals.md index 7284ebb2..5e569b92 100644 --- a/docs/sdk/models/operations/getsectionfiltersglobals.md +++ b/docs/sdk/models/operations/getsectionfiltersglobals.md @@ -6,16 +6,16 @@ import { GetSectionFiltersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSectionFiltersGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSectionFiltersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionfiltersrequest.md b/docs/sdk/models/operations/getsectionfiltersrequest.md index e8ccbbad..4f96ba1b 100644 --- a/docs/sdk/models/operations/getsectionfiltersrequest.md +++ b/docs/sdk/models/operations/getsectionfiltersrequest.md @@ -14,14 +14,15 @@ let value: GetSectionFiltersRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionhubsglobals.md b/docs/sdk/models/operations/getsectionhubsglobals.md index 4211b670..095fe5fe 100644 --- a/docs/sdk/models/operations/getsectionhubsglobals.md +++ b/docs/sdk/models/operations/getsectionhubsglobals.md @@ -6,16 +6,16 @@ import { GetSectionHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSectionHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSectionHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionhubsrequest.md b/docs/sdk/models/operations/getsectionhubsrequest.md index f803de3b..71dc6212 100644 --- a/docs/sdk/models/operations/getsectionhubsrequest.md +++ b/docs/sdk/models/operations/getsectionhubsrequest.md @@ -16,16 +16,17 @@ let value: GetSectionHubsRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | The section ID for the hubs to fetch | | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | | `onlyTransient` | [shared.BoolInt](../../../sdk/models/shared/boolint.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) | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionimageglobals.md b/docs/sdk/models/operations/getsectionimageglobals.md index 121588cc..b8f2bb40 100644 --- a/docs/sdk/models/operations/getsectionimageglobals.md +++ b/docs/sdk/models/operations/getsectionimageglobals.md @@ -6,16 +6,16 @@ import { GetSectionImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSectionImageGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSectionImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionimagerequest.md b/docs/sdk/models/operations/getsectionimagerequest.md index 242488f7..3c0f867e 100644 --- a/docs/sdk/models/operations/getsectionimagerequest.md +++ b/docs/sdk/models/operations/getsectionimagerequest.md @@ -15,16 +15,17 @@ let value: GetSectionImageRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `updatedAt` | *number* | :heavy_check_mark: | The update time of the image. Used for busting cache. | | | `mediaQuery` | [shared.MediaQuery](../../../sdk/models/shared/mediaquery.md) | :heavy_minus_sign: | This is a complex query built of several parameters. See [API Info section](#section/API-Info/Media-Queries) for information on building media queries | | diff --git a/docs/sdk/models/operations/getsectionpreferencesglobals.md b/docs/sdk/models/operations/getsectionpreferencesglobals.md index 4caba77d..39cf2253 100644 --- a/docs/sdk/models/operations/getsectionpreferencesglobals.md +++ b/docs/sdk/models/operations/getsectionpreferencesglobals.md @@ -6,16 +6,16 @@ import { GetSectionPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSectionPreferencesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSectionPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionpreferencesrequest.md b/docs/sdk/models/operations/getsectionpreferencesrequest.md index ca85374f..0947c0ed 100644 --- a/docs/sdk/models/operations/getsectionpreferencesrequest.md +++ b/docs/sdk/models/operations/getsectionpreferencesrequest.md @@ -14,15 +14,16 @@ let value: GetSectionPreferencesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `agent` | *string* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionsprefsglobals.md b/docs/sdk/models/operations/getsectionsprefsglobals.md index 5aee4c41..95b1926d 100644 --- a/docs/sdk/models/operations/getsectionsprefsglobals.md +++ b/docs/sdk/models/operations/getsectionsprefsglobals.md @@ -6,16 +6,16 @@ import { GetSectionsPrefsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSectionsPrefsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSectionsPrefsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsectionsprefsrequest.md b/docs/sdk/models/operations/getsectionsprefsrequest.md index 63e8742d..ed65cc57 100644 --- a/docs/sdk/models/operations/getsectionsprefsrequest.md +++ b/docs/sdk/models/operations/getsectionsprefsrequest.md @@ -14,15 +14,16 @@ let value: GetSectionsPrefsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `type` | *number* | :heavy_check_mark: | The metadata type | | | `agent` | *string* | :heavy_minus_sign: | The metadata agent in use | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverinfoglobals.md b/docs/sdk/models/operations/getserverinfoglobals.md index 9c77f6df..564ea3a6 100644 --- a/docs/sdk/models/operations/getserverinfoglobals.md +++ b/docs/sdk/models/operations/getserverinfoglobals.md @@ -6,16 +6,16 @@ import { GetServerInfoGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetServerInfoGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetServerInfoGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverinforequest.md b/docs/sdk/models/operations/getserverinforequest.md index 68b7213b..3e7e7035 100644 --- a/docs/sdk/models/operations/getserverinforequest.md +++ b/docs/sdk/models/operations/getserverinforequest.md @@ -12,13 +12,14 @@ let value: GetServerInfoRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionplaylistindexglobals.md b/docs/sdk/models/operations/getsessionplaylistindexglobals.md index 1ed2fdaa..d1f60b42 100644 --- a/docs/sdk/models/operations/getsessionplaylistindexglobals.md +++ b/docs/sdk/models/operations/getsessionplaylistindexglobals.md @@ -6,16 +6,16 @@ import { GetSessionPlaylistIndexGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionPlaylistIndexGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSessionPlaylistIndexGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionplaylistindexrequest.md b/docs/sdk/models/operations/getsessionplaylistindexrequest.md index 70319e15..eaf8f1a1 100644 --- a/docs/sdk/models/operations/getsessionplaylistindexrequest.md +++ b/docs/sdk/models/operations/getsessionplaylistindexrequest.md @@ -15,15 +15,16 @@ let value: GetSessionPlaylistIndexRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sessionId` | *string* | :heavy_check_mark: | The session id | | | `consumerId` | *string* | :heavy_check_mark: | The consumer id | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionsegmentglobals.md b/docs/sdk/models/operations/getsessionsegmentglobals.md index 8608e8a8..1cde3e91 100644 --- a/docs/sdk/models/operations/getsessionsegmentglobals.md +++ b/docs/sdk/models/operations/getsessionsegmentglobals.md @@ -6,16 +6,16 @@ import { GetSessionSegmentGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionSegmentGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSessionSegmentGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionsegmentrequest.md b/docs/sdk/models/operations/getsessionsegmentrequest.md index 93752f67..1206e5a9 100644 --- a/docs/sdk/models/operations/getsessionsegmentrequest.md +++ b/docs/sdk/models/operations/getsessionsegmentrequest.md @@ -16,16 +16,17 @@ let value: GetSessionSegmentRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sessionId` | *string* | :heavy_check_mark: | The session id | | | `consumerId` | *string* | :heavy_check_mark: | The consumer id | | | `segmentId` | *string* | :heavy_check_mark: | The segment id | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsonicallysimilarglobals.md b/docs/sdk/models/operations/getsonicallysimilarglobals.md index 7ab82d65..c512ac0f 100644 --- a/docs/sdk/models/operations/getsonicallysimilarglobals.md +++ b/docs/sdk/models/operations/getsonicallysimilarglobals.md @@ -6,16 +6,16 @@ import { GetSonicallySimilarGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSonicallySimilarGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSonicallySimilarGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsonicallysimilarrequest.md b/docs/sdk/models/operations/getsonicallysimilarrequest.md index 68aee474..883f0a6b 100644 --- a/docs/sdk/models/operations/getsonicallysimilarrequest.md +++ b/docs/sdk/models/operations/getsonicallysimilarrequest.md @@ -17,16 +17,17 @@ let value: GetSonicallySimilarRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `type` | *number* | :heavy_minus_sign: | The metadata type to fetch (should be 10 for audio track) | | | `values` | *number*[] | :heavy_check_mark: | The music analysis to center the search. Typically obtained from the `musicAnalysis` of a track | | diff --git a/docs/sdk/models/operations/getsonicpathglobals.md b/docs/sdk/models/operations/getsonicpathglobals.md index a1c842c3..b75e55bf 100644 --- a/docs/sdk/models/operations/getsonicpathglobals.md +++ b/docs/sdk/models/operations/getsonicpathglobals.md @@ -6,16 +6,16 @@ import { GetSonicPathGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSonicPathGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSonicPathGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsonicpathrequest.md b/docs/sdk/models/operations/getsonicpathrequest.md index 9ccc68d2..89a593d3 100644 --- a/docs/sdk/models/operations/getsonicpathrequest.md +++ b/docs/sdk/models/operations/getsonicpathrequest.md @@ -16,16 +16,17 @@ let value: GetSonicPathRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `startID` | *number* | :heavy_check_mark: | The starting metadata item id | | | `endID` | *number* | :heavy_check_mark: | The ending metadata item id | | diff --git a/docs/sdk/models/operations/getsourceconnectioninformationglobals.md b/docs/sdk/models/operations/getsourceconnectioninformationglobals.md index c9e41b8c..4176c46e 100644 --- a/docs/sdk/models/operations/getsourceconnectioninformationglobals.md +++ b/docs/sdk/models/operations/getsourceconnectioninformationglobals.md @@ -6,16 +6,16 @@ import { GetSourceConnectionInformationGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSourceConnectionInformationGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSourceConnectionInformationGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsourceconnectioninformationrequest.md b/docs/sdk/models/operations/getsourceconnectioninformationrequest.md index b67ff90f..2ddae850 100644 --- a/docs/sdk/models/operations/getsourceconnectioninformationrequest.md +++ b/docs/sdk/models/operations/getsourceconnectioninformationrequest.md @@ -16,15 +16,16 @@ let value: GetSourceConnectionInformationRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `source` | *string* | :heavy_check_mark: | The source identifier with an included prefix. | | | `refresh` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Force refresh | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamglobals.md b/docs/sdk/models/operations/getstreamglobals.md index 564f8042..8e66a270 100644 --- a/docs/sdk/models/operations/getstreamglobals.md +++ b/docs/sdk/models/operations/getstreamglobals.md @@ -6,16 +6,16 @@ import { GetStreamGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetStreamGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetStreamGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamlevelsglobals.md b/docs/sdk/models/operations/getstreamlevelsglobals.md index 4c568431..076a1ca2 100644 --- a/docs/sdk/models/operations/getstreamlevelsglobals.md +++ b/docs/sdk/models/operations/getstreamlevelsglobals.md @@ -6,16 +6,16 @@ import { GetStreamLevelsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetStreamLevelsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetStreamLevelsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamlevelsrequest.md b/docs/sdk/models/operations/getstreamlevelsrequest.md index 1c127743..5c948bf9 100644 --- a/docs/sdk/models/operations/getstreamlevelsrequest.md +++ b/docs/sdk/models/operations/getstreamlevelsrequest.md @@ -14,15 +14,16 @@ let value: GetStreamLevelsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `streamId` | *number* | :heavy_check_mark: | The id of the stream | | | `subsample` | *number* | :heavy_minus_sign: | Subsample result down to return only the provided number of samples | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamloudnessglobals.md b/docs/sdk/models/operations/getstreamloudnessglobals.md index 7f67743f..fe6f5434 100644 --- a/docs/sdk/models/operations/getstreamloudnessglobals.md +++ b/docs/sdk/models/operations/getstreamloudnessglobals.md @@ -6,16 +6,16 @@ import { GetStreamLoudnessGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetStreamLoudnessGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetStreamLoudnessGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamloudnessrequest.md b/docs/sdk/models/operations/getstreamloudnessrequest.md index f642657a..a5678473 100644 --- a/docs/sdk/models/operations/getstreamloudnessrequest.md +++ b/docs/sdk/models/operations/getstreamloudnessrequest.md @@ -14,15 +14,16 @@ let value: GetStreamLoudnessRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `streamId` | *number* | :heavy_check_mark: | The id of the stream | | | `subsample` | *number* | :heavy_minus_sign: | Subsample result down to return only the provided number of samples | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getstreamrequest.md b/docs/sdk/models/operations/getstreamrequest.md index 4fe08506..fd5bc4f2 100644 --- a/docs/sdk/models/operations/getstreamrequest.md +++ b/docs/sdk/models/operations/getstreamrequest.md @@ -17,16 +17,17 @@ let value: GetStreamRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `streamId` | *number* | :heavy_check_mark: | The id of the stream | | | `ext` | *string* | :heavy_check_mark: | The extension of the stream. Required to fetch the `sub` portion of `idx`/`sub` subtitles | | | `encoding` | *string* | :heavy_minus_sign: | The requested encoding for the subtitle (only used for text subtitles) | | diff --git a/docs/sdk/models/operations/getsubscriptionglobals.md b/docs/sdk/models/operations/getsubscriptionglobals.md index 4f52b0f9..06088feb 100644 --- a/docs/sdk/models/operations/getsubscriptionglobals.md +++ b/docs/sdk/models/operations/getsubscriptionglobals.md @@ -6,16 +6,16 @@ import { GetSubscriptionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSubscriptionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetSubscriptionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsubscriptionrequest.md b/docs/sdk/models/operations/getsubscriptionrequest.md index 975d762a..016a67ec 100644 --- a/docs/sdk/models/operations/getsubscriptionrequest.md +++ b/docs/sdk/models/operations/getsubscriptionrequest.md @@ -17,16 +17,17 @@ let value: GetSubscriptionRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `subscriptionId` | *number* | :heavy_check_mark: | N/A | | | `includeGrabs` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Indicates whether the active grabs should be included as well | 1 | | `includeStorage` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Compute the storage of recorded items desired by this subscription | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettagsglobals.md b/docs/sdk/models/operations/gettagsglobals.md index 010b181d..0be494f0 100644 --- a/docs/sdk/models/operations/gettagsglobals.md +++ b/docs/sdk/models/operations/gettagsglobals.md @@ -6,16 +6,16 @@ import { GetTagsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTagsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetTagsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettagsrequest.md b/docs/sdk/models/operations/gettagsrequest.md index 5f6cb1dc..08e8388e 100644 --- a/docs/sdk/models/operations/gettagsrequest.md +++ b/docs/sdk/models/operations/gettagsrequest.md @@ -12,14 +12,15 @@ let value: GetTagsRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `type` | *number* | :heavy_minus_sign: | The metadata type to filter by | | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettemplateglobals.md b/docs/sdk/models/operations/gettemplateglobals.md index f1f35577..aad2d734 100644 --- a/docs/sdk/models/operations/gettemplateglobals.md +++ b/docs/sdk/models/operations/gettemplateglobals.md @@ -6,16 +6,16 @@ import { GetTemplateGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTemplateGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetTemplateGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettemplaterequest.md b/docs/sdk/models/operations/gettemplaterequest.md index 8b6e864b..53afbe54 100644 --- a/docs/sdk/models/operations/gettemplaterequest.md +++ b/docs/sdk/models/operations/gettemplaterequest.md @@ -14,14 +14,15 @@ let value: GetTemplateRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `guid` | *string* | :heavy_minus_sign: | The guid of the item for which to get the template | plex://episode/5fc70265c40548002d539d23 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getthumbglobals.md b/docs/sdk/models/operations/getthumbglobals.md index c4a0290e..17aefac1 100644 --- a/docs/sdk/models/operations/getthumbglobals.md +++ b/docs/sdk/models/operations/getthumbglobals.md @@ -6,16 +6,16 @@ import { GetThumbGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetThumbGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetThumbGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/getthumbrequest.md b/docs/sdk/models/operations/getthumbrequest.md index b5ccd7f0..a63794a5 100644 --- a/docs/sdk/models/operations/getthumbrequest.md +++ b/docs/sdk/models/operations/getthumbrequest.md @@ -7,7 +7,7 @@ import { GetThumbRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetThumbRequest = { deviceId: 689308, - version: 911429, + versionPathParameter: 911429, }; ``` @@ -15,15 +15,16 @@ let value: GetThumbRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | -| `version` | *number* | :heavy_check_mark: | A version number of the thumb used for busting cache | | \ No newline at end of file +| `versionPathParameter` | *number* | :heavy_check_mark: | A version number of the thumb used for busting cache | | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettransienttokenglobals.md b/docs/sdk/models/operations/gettransienttokenglobals.md index dd075cdc..8f2ec139 100644 --- a/docs/sdk/models/operations/gettransienttokenglobals.md +++ b/docs/sdk/models/operations/gettransienttokenglobals.md @@ -6,16 +6,16 @@ import { GetTransientTokenGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTransientTokenGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: GetTransientTokenGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettransienttokenrequest.md b/docs/sdk/models/operations/gettransienttokenrequest.md index f66d15d4..781351fb 100644 --- a/docs/sdk/models/operations/gettransienttokenrequest.md +++ b/docs/sdk/models/operations/gettransienttokenrequest.md @@ -15,15 +15,16 @@ let value: GetTransientTokenRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `type` | [operations.GetTransientTokenType](../../../sdk/models/operations/gettransienttokentype.md) | :heavy_check_mark: | The value `delegation` is the only supported `type` parameter. | | | `scope` | [operations.GetTransientTokenScope](../../../sdk/models/operations/gettransienttokenscope.md) | :heavy_check_mark: | The value `all` is the only supported `scope` parameter. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/ingesttransientitemglobals.md b/docs/sdk/models/operations/ingesttransientitemglobals.md index 770a9343..bf8fedaf 100644 --- a/docs/sdk/models/operations/ingesttransientitemglobals.md +++ b/docs/sdk/models/operations/ingesttransientitemglobals.md @@ -6,16 +6,16 @@ import { IngestTransientItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: IngestTransientItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: IngestTransientItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/ingesttransientitemrequest.md b/docs/sdk/models/operations/ingesttransientitemrequest.md index 72ce276a..190c29e3 100644 --- a/docs/sdk/models/operations/ingesttransientitemrequest.md +++ b/docs/sdk/models/operations/ingesttransientitemrequest.md @@ -18,16 +18,17 @@ let value: IngestTransientItemRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `url` | *string* | :heavy_minus_sign: | The file of the file to ingest. | file:///storage%2Femulated%2F0%2FArcher-S01E01.mkv | | `virtualFilePath` | *string* | :heavy_minus_sign: | A virtual path to use when the url is opaque. | /Avatar.mkv | | `computeHashes` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether or not to compute Plex and OpenSubtitle hashes for the file. Defaults to 0. | 1 | diff --git a/docs/sdk/models/operations/listcontentglobals.md b/docs/sdk/models/operations/listcontentglobals.md index 06e10f7d..a00435c2 100644 --- a/docs/sdk/models/operations/listcontentglobals.md +++ b/docs/sdk/models/operations/listcontentglobals.md @@ -6,16 +6,16 @@ import { ListContentGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListContentGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListContentGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listcontentrequest.md b/docs/sdk/models/operations/listcontentrequest.md index 04c473af..b5b9a777 100644 --- a/docs/sdk/models/operations/listcontentrequest.md +++ b/docs/sdk/models/operations/listcontentrequest.md @@ -14,15 +14,16 @@ let value: ListContentRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `mediaQuery` | [shared.MediaQuery](../../../sdk/models/shared/mediaquery.md) | :heavy_minus_sign: | This is a complex query built of several parameters. See [API Info section](#section/API-Info/Media-Queries) for information on building media queries | | | `sectionId` | *string* | :heavy_check_mark: | The id of the section | | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemsglobals.md b/docs/sdk/models/operations/listdownloadqueueitemsglobals.md index 7ef47332..0dead492 100644 --- a/docs/sdk/models/operations/listdownloadqueueitemsglobals.md +++ b/docs/sdk/models/operations/listdownloadqueueitemsglobals.md @@ -6,16 +6,16 @@ import { ListDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListDownloadQueueItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listdownloadqueueitemsrequest.md b/docs/sdk/models/operations/listdownloadqueueitemsrequest.md index 5270e4db..c07aa4aa 100644 --- a/docs/sdk/models/operations/listdownloadqueueitemsrequest.md +++ b/docs/sdk/models/operations/listdownloadqueueitemsrequest.md @@ -14,14 +14,15 @@ let value: ListDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `queueId` | *number* | :heavy_check_mark: | The queue id | | \ No newline at end of file diff --git a/docs/sdk/models/operations/listhubsglobals.md b/docs/sdk/models/operations/listhubsglobals.md index 620d872a..27a5fd52 100644 --- a/docs/sdk/models/operations/listhubsglobals.md +++ b/docs/sdk/models/operations/listhubsglobals.md @@ -6,16 +6,16 @@ import { ListHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listhubsrequest.md b/docs/sdk/models/operations/listhubsrequest.md index b34a894e..4171b0c0 100644 --- a/docs/sdk/models/operations/listhubsrequest.md +++ b/docs/sdk/models/operations/listhubsrequest.md @@ -14,15 +14,16 @@ let value: ListHubsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | The section ID for the hubs to reorder | | | `metadataItemId` | *number* | :heavy_minus_sign: | Restrict hubs to ones relevant to the provided metadata item | | \ No newline at end of file diff --git a/docs/sdk/models/operations/listlineupsglobals.md b/docs/sdk/models/operations/listlineupsglobals.md index 6fd933b6..3be9e892 100644 --- a/docs/sdk/models/operations/listlineupsglobals.md +++ b/docs/sdk/models/operations/listlineupsglobals.md @@ -6,16 +6,16 @@ import { ListLineupsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListLineupsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListLineupsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listlineupsrequest.md b/docs/sdk/models/operations/listlineupsrequest.md index 47b1eb64..8a167fa1 100644 --- a/docs/sdk/models/operations/listlineupsrequest.md +++ b/docs/sdk/models/operations/listlineupsrequest.md @@ -16,16 +16,17 @@ let value: ListLineupsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `country` | *string* | :heavy_check_mark: | 3 letter country code | | | `epgId` | *string* | :heavy_check_mark: | The `providerIdentifier` of the provider | | | `region` | *string* | :heavy_check_mark: | The region for the lineup | | \ No newline at end of file diff --git a/docs/sdk/models/operations/listmatchesglobals.md b/docs/sdk/models/operations/listmatchesglobals.md index a85ada90..cf5c5a55 100644 --- a/docs/sdk/models/operations/listmatchesglobals.md +++ b/docs/sdk/models/operations/listmatchesglobals.md @@ -6,16 +6,16 @@ import { ListMatchesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListMatchesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListMatchesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listmatchesrequest.md b/docs/sdk/models/operations/listmatchesrequest.md index 3c4eb584..e92fe4e6 100644 --- a/docs/sdk/models/operations/listmatchesrequest.md +++ b/docs/sdk/models/operations/listmatchesrequest.md @@ -16,16 +16,17 @@ let value: ListMatchesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `title` | *string* | :heavy_minus_sign: | N/A | | | `parentTitle` | *string* | :heavy_minus_sign: | N/A | | diff --git a/docs/sdk/models/operations/listmomentsglobals.md b/docs/sdk/models/operations/listmomentsglobals.md index 5acec0ea..f3e95252 100644 --- a/docs/sdk/models/operations/listmomentsglobals.md +++ b/docs/sdk/models/operations/listmomentsglobals.md @@ -6,16 +6,16 @@ import { ListMomentsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListMomentsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListMomentsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listmomentsrequest.md b/docs/sdk/models/operations/listmomentsrequest.md index 23787723..517ab86f 100644 --- a/docs/sdk/models/operations/listmomentsrequest.md +++ b/docs/sdk/models/operations/listmomentsrequest.md @@ -14,14 +14,15 @@ let value: ListMomentsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/listpersonmediaglobals.md b/docs/sdk/models/operations/listpersonmediaglobals.md index 2245aae2..a43c9e25 100644 --- a/docs/sdk/models/operations/listpersonmediaglobals.md +++ b/docs/sdk/models/operations/listpersonmediaglobals.md @@ -6,16 +6,16 @@ import { ListPersonMediaGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListPersonMediaGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListPersonMediaGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listpersonmediarequest.md b/docs/sdk/models/operations/listpersonmediarequest.md index 48e7468e..ff018eb3 100644 --- a/docs/sdk/models/operations/listpersonmediarequest.md +++ b/docs/sdk/models/operations/listpersonmediarequest.md @@ -14,14 +14,15 @@ let value: ListPersonMediaRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `personId` | *string* | :heavy_check_mark: | Either the PMS tag `id` of the person or `tagKey` of the actor. Note the `tagKey` is the hex portion of the plex guid for the actor | | \ No newline at end of file diff --git a/docs/sdk/models/operations/listplaybackhistoryglobals.md b/docs/sdk/models/operations/listplaybackhistoryglobals.md index 4e86390e..8afa59a3 100644 --- a/docs/sdk/models/operations/listplaybackhistoryglobals.md +++ b/docs/sdk/models/operations/listplaybackhistoryglobals.md @@ -6,16 +6,16 @@ import { ListPlaybackHistoryGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListPlaybackHistoryGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListPlaybackHistoryGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listplaybackhistoryrequest.md b/docs/sdk/models/operations/listplaybackhistoryrequest.md index 613696f6..b58767b3 100644 --- a/docs/sdk/models/operations/listplaybackhistoryrequest.md +++ b/docs/sdk/models/operations/listplaybackhistoryrequest.md @@ -16,16 +16,17 @@ let value: ListPlaybackHistoryRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `accountID` | *number* | :heavy_minus_sign: | The account id to restrict view history | | | `viewedAt` | *number* | :heavy_minus_sign: | The time period to restrict history (typically of the form `viewedAt>=12456789`) | | | `librarySectionID` | *number* | :heavy_minus_sign: | The library section id to restrict view history | | diff --git a/docs/sdk/models/operations/listplaylistsglobals.md b/docs/sdk/models/operations/listplaylistsglobals.md index d905857b..bf6ab6bb 100644 --- a/docs/sdk/models/operations/listplaylistsglobals.md +++ b/docs/sdk/models/operations/listplaylistsglobals.md @@ -6,16 +6,16 @@ import { ListPlaylistsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListPlaylistsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListPlaylistsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listplaylistsrequest.md b/docs/sdk/models/operations/listplaylistsrequest.md index 079564b7..f0473c83 100644 --- a/docs/sdk/models/operations/listplaylistsrequest.md +++ b/docs/sdk/models/operations/listplaylistsrequest.md @@ -12,15 +12,16 @@ let value: ListPlaylistsRequest = {}; | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistType` | [operations.PlaylistType](../../../sdk/models/operations/playlisttype.md) | :heavy_minus_sign: | Limit to a type of playlist | | | `smart` | *boolean* | :heavy_minus_sign: | Whether this is a smart collection/playlist | | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsimilarglobals.md b/docs/sdk/models/operations/listsimilarglobals.md index 2781c556..92b45126 100644 --- a/docs/sdk/models/operations/listsimilarglobals.md +++ b/docs/sdk/models/operations/listsimilarglobals.md @@ -6,16 +6,16 @@ import { ListSimilarGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListSimilarGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListSimilarGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsimilarrequest.md b/docs/sdk/models/operations/listsimilarrequest.md index ef02b55c..f2b79cb2 100644 --- a/docs/sdk/models/operations/listsimilarrequest.md +++ b/docs/sdk/models/operations/listsimilarrequest.md @@ -14,15 +14,16 @@ let value: ListSimilarRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `count` | *number* | :heavy_minus_sign: | Limit results to count items | | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsonicallysimilarglobals.md b/docs/sdk/models/operations/listsonicallysimilarglobals.md index 929b707d..c8959d4a 100644 --- a/docs/sdk/models/operations/listsonicallysimilarglobals.md +++ b/docs/sdk/models/operations/listsonicallysimilarglobals.md @@ -6,16 +6,16 @@ import { ListSonicallySimilarGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListSonicallySimilarGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListSonicallySimilarGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listsonicallysimilarrequest.md b/docs/sdk/models/operations/listsonicallysimilarrequest.md index 002179ad..9708ba81 100644 --- a/docs/sdk/models/operations/listsonicallysimilarrequest.md +++ b/docs/sdk/models/operations/listsonicallysimilarrequest.md @@ -14,16 +14,17 @@ let value: ListSonicallySimilarRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `excludeParentID` | *number* | :heavy_minus_sign: | N/A | | | `excludeGrandparentID` | *number* | :heavy_minus_sign: | N/A | | diff --git a/docs/sdk/models/operations/listtopusersglobals.md b/docs/sdk/models/operations/listtopusersglobals.md index 5813fdba..3622d9d5 100644 --- a/docs/sdk/models/operations/listtopusersglobals.md +++ b/docs/sdk/models/operations/listtopusersglobals.md @@ -6,16 +6,16 @@ import { ListTopUsersGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ListTopUsersGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ListTopUsersGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/listtopusersrequest.md b/docs/sdk/models/operations/listtopusersrequest.md index f4f2e0bf..8ff5cf53 100644 --- a/docs/sdk/models/operations/listtopusersrequest.md +++ b/docs/sdk/models/operations/listtopusersrequest.md @@ -14,14 +14,15 @@ let value: ListTopUsersRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/makedecisionglobals.md b/docs/sdk/models/operations/makedecisionglobals.md index d7f750c3..271fe141 100644 --- a/docs/sdk/models/operations/makedecisionglobals.md +++ b/docs/sdk/models/operations/makedecisionglobals.md @@ -6,16 +6,16 @@ import { MakeDecisionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: MakeDecisionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: MakeDecisionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/makedecisionrequest.md b/docs/sdk/models/operations/makedecisionrequest.md index 82d74493..bc29fc06 100644 --- a/docs/sdk/models/operations/makedecisionrequest.md +++ b/docs/sdk/models/operations/makedecisionrequest.md @@ -49,16 +49,17 @@ let value: MakeDecisionRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `transcodeType` | [shared.TranscodeType](../../../sdk/models/shared/transcodetype.md) | :heavy_check_mark: | Type of transcode media | | | `transcodeSessionId` | *string* | :heavy_minus_sign: | Transcode session UUID | | | `advancedSubtitles` | [shared.AdvancedSubtitles](../../../sdk/models/shared/advancedsubtitles.md) | :heavy_minus_sign: | Indicates how incompatible advanced subtitles (such as ass/ssa) should be included: * 'burn' - Burn incompatible advanced text subtitles into the video stream * 'text' - Transcode incompatible advanced text subtitles to a compatible text format, even if some markup is lost
| burn | diff --git a/docs/sdk/models/operations/markplayedglobals.md b/docs/sdk/models/operations/markplayedglobals.md index 76f29f56..fd2c7145 100644 --- a/docs/sdk/models/operations/markplayedglobals.md +++ b/docs/sdk/models/operations/markplayedglobals.md @@ -6,16 +6,16 @@ import { MarkPlayedGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: MarkPlayedGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: MarkPlayedGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/markplayedrequest.md b/docs/sdk/models/operations/markplayedrequest.md index c155a964..436d35d7 100644 --- a/docs/sdk/models/operations/markplayedrequest.md +++ b/docs/sdk/models/operations/markplayedrequest.md @@ -14,16 +14,17 @@ let value: MarkPlayedRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `identifier` | *string* | :heavy_check_mark: | The identifier of the media provider containing the media to rate. Typically `com.plexapp.plugins.library` | | | `key` | *string* | :heavy_minus_sign: | The key of the item to rate. This is the `ratingKey` found in metadata items | | | `uri` | *string* | :heavy_minus_sign: | The URI of the item to mark as played. See intro for description of the URIs | | \ No newline at end of file diff --git a/docs/sdk/models/operations/matchitemglobals.md b/docs/sdk/models/operations/matchitemglobals.md index 1c4a3b49..5baf8152 100644 --- a/docs/sdk/models/operations/matchitemglobals.md +++ b/docs/sdk/models/operations/matchitemglobals.md @@ -6,16 +6,16 @@ import { MatchItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: MatchItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: MatchItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/matchitemrequest.md b/docs/sdk/models/operations/matchitemrequest.md index 14140919..a518b10a 100644 --- a/docs/sdk/models/operations/matchitemrequest.md +++ b/docs/sdk/models/operations/matchitemrequest.md @@ -14,16 +14,17 @@ let value: MatchItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `guid` | *string* | :heavy_minus_sign: | N/A | | | `name` | *string* | :heavy_minus_sign: | N/A | | diff --git a/docs/sdk/models/operations/mergeitemsglobals.md b/docs/sdk/models/operations/mergeitemsglobals.md index 6ddef48e..5c571fa0 100644 --- a/docs/sdk/models/operations/mergeitemsglobals.md +++ b/docs/sdk/models/operations/mergeitemsglobals.md @@ -6,16 +6,16 @@ import { MergeItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: MergeItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: MergeItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/mergeitemsrequest.md b/docs/sdk/models/operations/mergeitemsrequest.md index 9eb3172f..4c2f45b3 100644 --- a/docs/sdk/models/operations/mergeitemsrequest.md +++ b/docs/sdk/models/operations/mergeitemsrequest.md @@ -14,15 +14,16 @@ let value: MergeItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `idsPathParameter` | *string* | :heavy_check_mark: | N/A | | | `idsQueryParameter` | *string*[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifydeviceglobals.md b/docs/sdk/models/operations/modifydeviceglobals.md index 9d76b20b..fdeadcf9 100644 --- a/docs/sdk/models/operations/modifydeviceglobals.md +++ b/docs/sdk/models/operations/modifydeviceglobals.md @@ -6,16 +6,16 @@ import { ModifyDeviceGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ModifyDeviceGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ModifyDeviceGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifydevicerequest.md b/docs/sdk/models/operations/modifydevicerequest.md index 2ed9076b..cf117804 100644 --- a/docs/sdk/models/operations/modifydevicerequest.md +++ b/docs/sdk/models/operations/modifydevicerequest.md @@ -16,15 +16,16 @@ let value: ModifyDeviceRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | | `enabled` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether to enable the device | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifyplaylistgeneratorglobals.md b/docs/sdk/models/operations/modifyplaylistgeneratorglobals.md index bd29e305..7943d97b 100644 --- a/docs/sdk/models/operations/modifyplaylistgeneratorglobals.md +++ b/docs/sdk/models/operations/modifyplaylistgeneratorglobals.md @@ -6,16 +6,16 @@ import { ModifyPlaylistGeneratorGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ModifyPlaylistGeneratorGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ModifyPlaylistGeneratorGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/modifyplaylistgeneratorrequest.md b/docs/sdk/models/operations/modifyplaylistgeneratorrequest.md index c407bf28..82e52a56 100644 --- a/docs/sdk/models/operations/modifyplaylistgeneratorrequest.md +++ b/docs/sdk/models/operations/modifyplaylistgeneratorrequest.md @@ -32,16 +32,17 @@ let value: ModifyPlaylistGeneratorRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | | `generatorId` | *number* | :heavy_check_mark: | The generator item ID to modify. | | | `item` | [operations.ModifyPlaylistGeneratorItem](../../../sdk/models/operations/modifyplaylistgeneratoritem.md) | :heavy_minus_sign: | Note: OpenAPI cannot properly render this query parameter example ([See GHI](https://github.com/OAI/OpenAPI-Specification/issues/1706)). It should be rendered as:

Item[type]=42&Item[title]=Jack-Jack Attack&Item[target]=&Item[targetTagID]=1&Item[locationID]=-1&Item[Location][uri]=library://82503060-0d68-4603-b594-8b071d54819e/item//library/metadata/146&Item[Policy][scope]=all&Item[Policy][value]=&Item[Policy][unwatched]=0
| {
"Location": {
"uri": "library://82503060-0d68-4603-b594-8b071d54819e/item/%2Flibrary%2Fmetadata%2F146"
},
"locationID": -1,
"Policy": {
"value": "",
"scope": "all",
"unwatched": 0
},
"target": "",
"targetTagID": 1,
"title": "Jack-Jack Attack",
"type": 42
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/movecollectionitemglobals.md b/docs/sdk/models/operations/movecollectionitemglobals.md index 4fe2ac12..fe68fb96 100644 --- a/docs/sdk/models/operations/movecollectionitemglobals.md +++ b/docs/sdk/models/operations/movecollectionitemglobals.md @@ -6,16 +6,16 @@ import { MoveCollectionItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: MoveCollectionItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: MoveCollectionItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/movecollectionitemrequest.md b/docs/sdk/models/operations/movecollectionitemrequest.md index aa5b0178..1bb4ee75 100644 --- a/docs/sdk/models/operations/movecollectionitemrequest.md +++ b/docs/sdk/models/operations/movecollectionitemrequest.md @@ -15,16 +15,17 @@ let value: MoveCollectionItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `collectionId` | *number* | :heavy_check_mark: | The collection id | | | `itemId` | *number* | :heavy_check_mark: | The item to move | | | `after` | *number* | :heavy_minus_sign: | The item to move this item after. If not provided, this item will be moved to the beginning | | \ No newline at end of file diff --git a/docs/sdk/models/operations/movehubglobals.md b/docs/sdk/models/operations/movehubglobals.md index ea9791a0..4506b784 100644 --- a/docs/sdk/models/operations/movehubglobals.md +++ b/docs/sdk/models/operations/movehubglobals.md @@ -6,16 +6,16 @@ import { MoveHubGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: MoveHubGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: MoveHubGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/movehubrequest.md b/docs/sdk/models/operations/movehubrequest.md index 6e4d13a8..aefb1c81 100644 --- a/docs/sdk/models/operations/movehubrequest.md +++ b/docs/sdk/models/operations/movehubrequest.md @@ -15,16 +15,17 @@ let value: MoveHubRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | The section ID for the hubs to reorder | | | `identifier` | *string* | :heavy_check_mark: | The identifier of the hub to move | | | `after` | *string* | :heavy_minus_sign: | The identifier of the hub to order this hub after (or empty/missing to put this hub first) | | \ No newline at end of file diff --git a/docs/sdk/models/operations/moveplaylistitemglobals.md b/docs/sdk/models/operations/moveplaylistitemglobals.md index 5eab1bdf..3d54a305 100644 --- a/docs/sdk/models/operations/moveplaylistitemglobals.md +++ b/docs/sdk/models/operations/moveplaylistitemglobals.md @@ -6,16 +6,16 @@ import { MovePlaylistItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: MovePlaylistItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: MovePlaylistItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/moveplaylistitemrequest.md b/docs/sdk/models/operations/moveplaylistitemrequest.md index 202fde28..03a91301 100644 --- a/docs/sdk/models/operations/moveplaylistitemrequest.md +++ b/docs/sdk/models/operations/moveplaylistitemrequest.md @@ -15,16 +15,17 @@ let value: MovePlaylistItemRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | | `playlistItemId` | *number* | :heavy_check_mark: | The playlist item ID to move. | | | `after` | *number* | :heavy_minus_sign: | The playlist item ID to insert the new item after. If not provided, item is moved to beginning of playlist | | \ No newline at end of file diff --git a/docs/sdk/models/operations/moveplayqueueitemglobals.md b/docs/sdk/models/operations/moveplayqueueitemglobals.md index 32ce7ff3..3d368297 100644 --- a/docs/sdk/models/operations/moveplayqueueitemglobals.md +++ b/docs/sdk/models/operations/moveplayqueueitemglobals.md @@ -6,16 +6,16 @@ import { MovePlayQueueItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: MovePlayQueueItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: MovePlayQueueItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/moveplayqueueitemrequest.md b/docs/sdk/models/operations/moveplayqueueitemrequest.md index 39f5db2d..44837d05 100644 --- a/docs/sdk/models/operations/moveplayqueueitemrequest.md +++ b/docs/sdk/models/operations/moveplayqueueitemrequest.md @@ -15,16 +15,17 @@ let value: MovePlayQueueItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playQueueId` | *number* | :heavy_check_mark: | The ID of the play queue. | | | `playQueueItemId` | *number* | :heavy_check_mark: | The play queue item ID to delete. | | | `after` | *number* | :heavy_minus_sign: | The play queue item ID to insert the new item after. If not present, moves to the beginning. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/optimizedatabaseglobals.md b/docs/sdk/models/operations/optimizedatabaseglobals.md index b27077fd..d24a70a0 100644 --- a/docs/sdk/models/operations/optimizedatabaseglobals.md +++ b/docs/sdk/models/operations/optimizedatabaseglobals.md @@ -6,16 +6,16 @@ import { OptimizeDatabaseGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: OptimizeDatabaseGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: OptimizeDatabaseGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/optimizedatabaserequest.md b/docs/sdk/models/operations/optimizedatabaserequest.md index 38050594..59d391c3 100644 --- a/docs/sdk/models/operations/optimizedatabaserequest.md +++ b/docs/sdk/models/operations/optimizedatabaserequest.md @@ -15,14 +15,15 @@ let value: OptimizeDatabaseRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `async` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | If set, don't wait for completion but return an activity | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshitemsmetadataglobals.md b/docs/sdk/models/operations/refreshitemsmetadataglobals.md index 05616d33..66ad7e90 100644 --- a/docs/sdk/models/operations/refreshitemsmetadataglobals.md +++ b/docs/sdk/models/operations/refreshitemsmetadataglobals.md @@ -6,16 +6,16 @@ import { RefreshItemsMetadataGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: RefreshItemsMetadataGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: RefreshItemsMetadataGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshitemsmetadatarequest.md b/docs/sdk/models/operations/refreshitemsmetadatarequest.md index 5b8366f5..4c7711f4 100644 --- a/docs/sdk/models/operations/refreshitemsmetadatarequest.md +++ b/docs/sdk/models/operations/refreshitemsmetadatarequest.md @@ -16,16 +16,17 @@ let value: RefreshItemsMetadataRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `agent` | *string* | :heavy_minus_sign: | N/A | | | `markUpdated` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshplaylistglobals.md b/docs/sdk/models/operations/refreshplaylistglobals.md index 3680ff1f..a6e5560a 100644 --- a/docs/sdk/models/operations/refreshplaylistglobals.md +++ b/docs/sdk/models/operations/refreshplaylistglobals.md @@ -6,16 +6,16 @@ import { RefreshPlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: RefreshPlaylistGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: RefreshPlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshplaylistrequest.md b/docs/sdk/models/operations/refreshplaylistrequest.md index 5dba41b6..bef5ad90 100644 --- a/docs/sdk/models/operations/refreshplaylistrequest.md +++ b/docs/sdk/models/operations/refreshplaylistrequest.md @@ -17,16 +17,17 @@ let value: RefreshPlaylistRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | | `generatorId` | *number* | :heavy_check_mark: | The generator item ID to act on | | | `metadataId` | *number* | :heavy_check_mark: | The metadata item ID to act on | | diff --git a/docs/sdk/models/operations/refreshsectionglobals.md b/docs/sdk/models/operations/refreshsectionglobals.md index 2c787018..36672e7d 100644 --- a/docs/sdk/models/operations/refreshsectionglobals.md +++ b/docs/sdk/models/operations/refreshsectionglobals.md @@ -6,16 +6,16 @@ import { RefreshSectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: RefreshSectionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: RefreshSectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshsectionrequest.md b/docs/sdk/models/operations/refreshsectionrequest.md index f53c145a..4f2b3f25 100644 --- a/docs/sdk/models/operations/refreshsectionrequest.md +++ b/docs/sdk/models/operations/refreshsectionrequest.md @@ -16,16 +16,17 @@ let value: RefreshSectionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `force` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether the update of metadata and items should be performed even if modification dates indicate the items have not change | 1 | | `path` | *string* | :heavy_minus_sign: | Restrict refresh to the specified path | | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshsectionsmetadataglobals.md b/docs/sdk/models/operations/refreshsectionsmetadataglobals.md index e267f383..a2c5f5de 100644 --- a/docs/sdk/models/operations/refreshsectionsmetadataglobals.md +++ b/docs/sdk/models/operations/refreshsectionsmetadataglobals.md @@ -6,16 +6,16 @@ import { RefreshSectionsMetadataGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: RefreshSectionsMetadataGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: RefreshSectionsMetadataGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/refreshsectionsmetadatarequest.md b/docs/sdk/models/operations/refreshsectionsmetadatarequest.md index 9ad5faed..86d2731b 100644 --- a/docs/sdk/models/operations/refreshsectionsmetadatarequest.md +++ b/docs/sdk/models/operations/refreshsectionsmetadatarequest.md @@ -12,14 +12,15 @@ let value: RefreshSectionsMetadataRequest = {}; | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `force` | *boolean* | :heavy_minus_sign: | Force refresh of metadata | | \ No newline at end of file diff --git a/docs/sdk/models/operations/reloadguideglobals.md b/docs/sdk/models/operations/reloadguideglobals.md index 04882ed2..c86a8ca0 100644 --- a/docs/sdk/models/operations/reloadguideglobals.md +++ b/docs/sdk/models/operations/reloadguideglobals.md @@ -6,16 +6,16 @@ import { ReloadGuideGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ReloadGuideGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ReloadGuideGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/reloadguiderequest.md b/docs/sdk/models/operations/reloadguiderequest.md index b629949b..ac37318f 100644 --- a/docs/sdk/models/operations/reloadguiderequest.md +++ b/docs/sdk/models/operations/reloadguiderequest.md @@ -14,14 +14,15 @@ let value: ReloadGuideRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedevicefromdvrglobals.md b/docs/sdk/models/operations/removedevicefromdvrglobals.md index b4970e42..be007b8e 100644 --- a/docs/sdk/models/operations/removedevicefromdvrglobals.md +++ b/docs/sdk/models/operations/removedevicefromdvrglobals.md @@ -6,16 +6,16 @@ import { RemoveDeviceFromDVRGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: RemoveDeviceFromDVRGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: RemoveDeviceFromDVRGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedevicefromdvrrequest.md b/docs/sdk/models/operations/removedevicefromdvrrequest.md index ad121907..df5f6e4e 100644 --- a/docs/sdk/models/operations/removedevicefromdvrrequest.md +++ b/docs/sdk/models/operations/removedevicefromdvrrequest.md @@ -15,15 +15,16 @@ let value: RemoveDeviceFromDVRRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device to add. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedeviceglobals.md b/docs/sdk/models/operations/removedeviceglobals.md index f14edeb4..6214088f 100644 --- a/docs/sdk/models/operations/removedeviceglobals.md +++ b/docs/sdk/models/operations/removedeviceglobals.md @@ -6,16 +6,16 @@ import { RemoveDeviceGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: RemoveDeviceGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: RemoveDeviceGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedevicerequest.md b/docs/sdk/models/operations/removedevicerequest.md index 0a775963..f578b809 100644 --- a/docs/sdk/models/operations/removedevicerequest.md +++ b/docs/sdk/models/operations/removedevicerequest.md @@ -14,14 +14,15 @@ let value: RemoveDeviceRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedownloadqueueitemsglobals.md b/docs/sdk/models/operations/removedownloadqueueitemsglobals.md index 657dbb5c..e685d006 100644 --- a/docs/sdk/models/operations/removedownloadqueueitemsglobals.md +++ b/docs/sdk/models/operations/removedownloadqueueitemsglobals.md @@ -6,16 +6,16 @@ import { RemoveDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: RemoveDownloadQueueItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: RemoveDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/removedownloadqueueitemsrequest.md b/docs/sdk/models/operations/removedownloadqueueitemsrequest.md index 7fb9ac74..26fda0e3 100644 --- a/docs/sdk/models/operations/removedownloadqueueitemsrequest.md +++ b/docs/sdk/models/operations/removedownloadqueueitemsrequest.md @@ -19,15 +19,16 @@ let value: RemoveDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `queueId` | *number* | :heavy_check_mark: | The queue id | | | `itemId` | *number*[] | :heavy_check_mark: | The item id | [
32,
345,
23
] | \ No newline at end of file diff --git a/docs/sdk/models/operations/reordersubscriptionglobals.md b/docs/sdk/models/operations/reordersubscriptionglobals.md index f9aa9714..0c94930e 100644 --- a/docs/sdk/models/operations/reordersubscriptionglobals.md +++ b/docs/sdk/models/operations/reordersubscriptionglobals.md @@ -6,16 +6,16 @@ import { ReorderSubscriptionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ReorderSubscriptionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ReorderSubscriptionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/reordersubscriptionrequest.md b/docs/sdk/models/operations/reordersubscriptionrequest.md index 0452adec..a47f553a 100644 --- a/docs/sdk/models/operations/reordersubscriptionrequest.md +++ b/docs/sdk/models/operations/reordersubscriptionrequest.md @@ -14,15 +14,16 @@ let value: ReorderSubscriptionRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `subscriptionId` | *number* | :heavy_check_mark: | N/A | | | `after` | *number* | :heavy_minus_sign: | The subscription to move this sub after. If missing will insert at the beginning of the list | | \ No newline at end of file diff --git a/docs/sdk/models/operations/reportglobals.md b/docs/sdk/models/operations/reportglobals.md index 6a2a0dbd..85b93c6f 100644 --- a/docs/sdk/models/operations/reportglobals.md +++ b/docs/sdk/models/operations/reportglobals.md @@ -6,16 +6,16 @@ import { ReportGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ReportGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ReportGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/reportrequest.md b/docs/sdk/models/operations/reportrequest.md index 97679ad2..b289fa2f 100644 --- a/docs/sdk/models/operations/reportrequest.md +++ b/docs/sdk/models/operations/reportrequest.md @@ -28,16 +28,17 @@ let value: ReportRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `key` | *string* | :heavy_minus_sign: | The details key for the item. | /foo | | `ratingKey` | *string* | :heavy_minus_sign: | The rating key attribute for the item. | xyz | | `state` | [operations.ReportState](../../../sdk/models/operations/reportstate.md) | :heavy_minus_sign: | The current state of the media. | playing | diff --git a/docs/sdk/models/operations/resetplayqueueglobals.md b/docs/sdk/models/operations/resetplayqueueglobals.md index 27434134..e96825e0 100644 --- a/docs/sdk/models/operations/resetplayqueueglobals.md +++ b/docs/sdk/models/operations/resetplayqueueglobals.md @@ -6,16 +6,16 @@ import { ResetPlayQueueGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ResetPlayQueueGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ResetPlayQueueGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/resetplayqueuerequest.md b/docs/sdk/models/operations/resetplayqueuerequest.md index 39defe01..cd9c2632 100644 --- a/docs/sdk/models/operations/resetplayqueuerequest.md +++ b/docs/sdk/models/operations/resetplayqueuerequest.md @@ -14,14 +14,15 @@ let value: ResetPlayQueueRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playQueueId` | *number* | :heavy_check_mark: | The ID of the play queue. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/resetsectiondefaultsglobals.md b/docs/sdk/models/operations/resetsectiondefaultsglobals.md index 88db07ad..3eb539b2 100644 --- a/docs/sdk/models/operations/resetsectiondefaultsglobals.md +++ b/docs/sdk/models/operations/resetsectiondefaultsglobals.md @@ -6,16 +6,16 @@ import { ResetSectionDefaultsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ResetSectionDefaultsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ResetSectionDefaultsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/resetsectiondefaultsrequest.md b/docs/sdk/models/operations/resetsectiondefaultsrequest.md index 801f3d6e..ed754cb0 100644 --- a/docs/sdk/models/operations/resetsectiondefaultsrequest.md +++ b/docs/sdk/models/operations/resetsectiondefaultsrequest.md @@ -14,14 +14,15 @@ let value: ResetSectionDefaultsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | The section ID for the hubs to reorder | | \ No newline at end of file diff --git a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsglobals.md b/docs/sdk/models/operations/restartprocessingdownloadqueueitemsglobals.md index ba170d27..b18b984c 100644 --- a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsglobals.md +++ b/docs/sdk/models/operations/restartprocessingdownloadqueueitemsglobals.md @@ -6,16 +6,16 @@ import { RestartProcessingDownloadQueueItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: RestartProcessingDownloadQueueItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: RestartProcessingDownloadQueueItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md b/docs/sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md index a675ddae..89deca60 100644 --- a/docs/sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md +++ b/docs/sdk/models/operations/restartprocessingdownloadqueueitemsrequest.md @@ -19,15 +19,16 @@ let value: RestartProcessingDownloadQueueItemsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `queueId` | *number* | :heavy_check_mark: | The queue id | | | `itemId` | *number*[] | :heavy_check_mark: | The item ids | [
32,
345,
23
] | \ No newline at end of file diff --git a/docs/sdk/models/operations/scanglobals.md b/docs/sdk/models/operations/scanglobals.md index 4ef3f0ca..287bbbc1 100644 --- a/docs/sdk/models/operations/scanglobals.md +++ b/docs/sdk/models/operations/scanglobals.md @@ -6,16 +6,16 @@ import { ScanGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ScanGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ScanGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/scanrequest.md b/docs/sdk/models/operations/scanrequest.md index f2387a8c..10b1d943 100644 --- a/docs/sdk/models/operations/scanrequest.md +++ b/docs/sdk/models/operations/scanrequest.md @@ -15,15 +15,16 @@ let value: ScanRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | | `source` | *string* | :heavy_minus_sign: | A valid source for the scan | Cable | \ No newline at end of file diff --git a/docs/sdk/models/operations/searchhubsglobals.md b/docs/sdk/models/operations/searchhubsglobals.md index 5f0beace..5e5b1143 100644 --- a/docs/sdk/models/operations/searchhubsglobals.md +++ b/docs/sdk/models/operations/searchhubsglobals.md @@ -6,16 +6,16 @@ import { SearchHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SearchHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SearchHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/searchhubsrequest.md b/docs/sdk/models/operations/searchhubsrequest.md index db38cf75..e04a6daa 100644 --- a/docs/sdk/models/operations/searchhubsrequest.md +++ b/docs/sdk/models/operations/searchhubsrequest.md @@ -15,16 +15,17 @@ let value: SearchHubsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `query` | *string* | :heavy_check_mark: | The query term | | | `sectionId` | *number* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs. | 1 | | `limit` | *number* | :heavy_minus_sign: | The number of items to return per hub. 3 if not specified | | \ No newline at end of file diff --git a/docs/sdk/models/operations/setchannelmapglobals.md b/docs/sdk/models/operations/setchannelmapglobals.md index 627183e8..c8559af9 100644 --- a/docs/sdk/models/operations/setchannelmapglobals.md +++ b/docs/sdk/models/operations/setchannelmapglobals.md @@ -6,16 +6,16 @@ import { SetChannelmapGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetChannelmapGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetChannelmapGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setchannelmaprequest.md b/docs/sdk/models/operations/setchannelmaprequest.md index 7c81d249..abfecc29 100644 --- a/docs/sdk/models/operations/setchannelmaprequest.md +++ b/docs/sdk/models/operations/setchannelmaprequest.md @@ -19,16 +19,17 @@ let value: SetChannelmapRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | | `channelMapping` | [operations.SetChannelmapChannelMapping](../../../sdk/models/operations/setchannelmapchannelmapping.md) | :heavy_minus_sign: | The mapping of changes, passed as a map of device channel to lineup VCN. | {
"46.3": 2,
"48.9": 4
} | | `channelMappingByKey` | [operations.ChannelMappingByKey](../../../sdk/models/operations/channelmappingbykey.md) | :heavy_minus_sign: | The mapping of changes, passed as a map of device channel to lineup key. | {
"46.3": "5cc83d73af4a72001e9b16d7-5cab3c634df507001fefcad0",
"48.9": "5cc83d73af4a72001e9b16d7-5cab3c63ec158a001d32db8d"
} | diff --git a/docs/sdk/models/operations/setdevicepreferencesglobals.md b/docs/sdk/models/operations/setdevicepreferencesglobals.md index 44498cf5..8ac3573e 100644 --- a/docs/sdk/models/operations/setdevicepreferencesglobals.md +++ b/docs/sdk/models/operations/setdevicepreferencesglobals.md @@ -6,16 +6,16 @@ import { SetDevicePreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetDevicePreferencesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetDevicePreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdevicepreferencesrequest.md b/docs/sdk/models/operations/setdevicepreferencesrequest.md index 2baff2c2..33265b21 100644 --- a/docs/sdk/models/operations/setdevicepreferencesrequest.md +++ b/docs/sdk/models/operations/setdevicepreferencesrequest.md @@ -14,15 +14,16 @@ let value: SetDevicePreferencesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | | `name` | *string* | :heavy_minus_sign: | The preference names and values. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdvrpreferencesglobals.md b/docs/sdk/models/operations/setdvrpreferencesglobals.md index 274b9152..c8ffe1e1 100644 --- a/docs/sdk/models/operations/setdvrpreferencesglobals.md +++ b/docs/sdk/models/operations/setdvrpreferencesglobals.md @@ -6,16 +6,16 @@ import { SetDVRPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetDVRPreferencesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetDVRPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setdvrpreferencesrequest.md b/docs/sdk/models/operations/setdvrpreferencesrequest.md index efb1efdf..b8366480 100644 --- a/docs/sdk/models/operations/setdvrpreferencesrequest.md +++ b/docs/sdk/models/operations/setdvrpreferencesrequest.md @@ -14,15 +14,16 @@ let value: SetDVRPreferencesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | | `name` | *string* | :heavy_minus_sign: | Set the `name` preference to the provided value | | \ No newline at end of file diff --git a/docs/sdk/models/operations/setitemartworkglobals.md b/docs/sdk/models/operations/setitemartworkglobals.md index 129b3938..e8c7f913 100644 --- a/docs/sdk/models/operations/setitemartworkglobals.md +++ b/docs/sdk/models/operations/setitemartworkglobals.md @@ -6,16 +6,16 @@ import { SetItemArtworkGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetItemArtworkGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetItemArtworkGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setitemartworkrequest.md b/docs/sdk/models/operations/setitemartworkrequest.md index e49e0852..4d993fb9 100644 --- a/docs/sdk/models/operations/setitemartworkrequest.md +++ b/docs/sdk/models/operations/setitemartworkrequest.md @@ -15,16 +15,17 @@ let value: SetItemArtworkRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `element` | [operations.SetItemArtworkElement](../../../sdk/models/operations/setitemartworkelement.md) | :heavy_check_mark: | N/A | | | `url` | *string* | :heavy_minus_sign: | The url of the new asset. If not provided, the binary of the asset must be provided in the post body. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/setitempreferencesglobals.md b/docs/sdk/models/operations/setitempreferencesglobals.md index 7f487fbf..88f7f149 100644 --- a/docs/sdk/models/operations/setitempreferencesglobals.md +++ b/docs/sdk/models/operations/setitempreferencesglobals.md @@ -6,16 +6,16 @@ import { SetItemPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetItemPreferencesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetItemPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setitempreferencesrequest.md b/docs/sdk/models/operations/setitempreferencesrequest.md index f137a341..33116ab5 100644 --- a/docs/sdk/models/operations/setitempreferencesrequest.md +++ b/docs/sdk/models/operations/setitempreferencesrequest.md @@ -14,15 +14,16 @@ let value: SetItemPreferencesRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `args` | [operations.SetItemPreferencesArgs](../../../sdk/models/operations/setitempreferencesargs.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/setpreferencesglobals.md b/docs/sdk/models/operations/setpreferencesglobals.md index dfbe9c76..fb1007df 100644 --- a/docs/sdk/models/operations/setpreferencesglobals.md +++ b/docs/sdk/models/operations/setpreferencesglobals.md @@ -6,16 +6,16 @@ import { SetPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetPreferencesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setpreferencesrequest.md b/docs/sdk/models/operations/setpreferencesrequest.md index ac99d3d6..67161279 100644 --- a/docs/sdk/models/operations/setpreferencesrequest.md +++ b/docs/sdk/models/operations/setpreferencesrequest.md @@ -14,14 +14,15 @@ let value: SetPreferencesRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `prefs` | [operations.SetPreferencesPrefs](../../../sdk/models/operations/setpreferencesprefs.md) | :heavy_check_mark: | N/A | {
"FriendlyName": "My Server",
"ScheduledLibraryUpdateInterval": 3600,
"sendCrashReports": 1
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/setratingglobals.md b/docs/sdk/models/operations/setratingglobals.md index 47557096..f047d4a0 100644 --- a/docs/sdk/models/operations/setratingglobals.md +++ b/docs/sdk/models/operations/setratingglobals.md @@ -6,16 +6,16 @@ import { SetRatingGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetRatingGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetRatingGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setratingrequest.md b/docs/sdk/models/operations/setratingrequest.md index 6022b6c3..ca525862 100644 --- a/docs/sdk/models/operations/setratingrequest.md +++ b/docs/sdk/models/operations/setratingrequest.md @@ -16,16 +16,17 @@ let value: SetRatingRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `identifier` | *string* | :heavy_check_mark: | The identifier of the media provider containing the media to rate. Typically `com.plexapp.plugins.library` | | | `key` | *string* | :heavy_check_mark: | The key of the item to rate. This is the `ratingKey` found in metadata items | | | `rating` | *number* | :heavy_check_mark: | The rating to give the item. | | diff --git a/docs/sdk/models/operations/setsectionpreferencesglobals.md b/docs/sdk/models/operations/setsectionpreferencesglobals.md index b5b0ffd7..93526cb9 100644 --- a/docs/sdk/models/operations/setsectionpreferencesglobals.md +++ b/docs/sdk/models/operations/setsectionpreferencesglobals.md @@ -6,16 +6,16 @@ import { SetSectionPreferencesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetSectionPreferencesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetSectionPreferencesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setsectionpreferencesrequest.md b/docs/sdk/models/operations/setsectionpreferencesrequest.md index 1933d1ee..b2af8265 100644 --- a/docs/sdk/models/operations/setsectionpreferencesrequest.md +++ b/docs/sdk/models/operations/setsectionpreferencesrequest.md @@ -15,15 +15,16 @@ let value: SetSectionPreferencesRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | | `prefs` | [operations.SetSectionPreferencesPrefs](../../../sdk/models/operations/setsectionpreferencesprefs.md) | :heavy_check_mark: | N/A | {
"enableCinemaTrailers": 1,
"hidden": 0
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/setstreamoffsetglobals.md b/docs/sdk/models/operations/setstreamoffsetglobals.md index 67ad2fe3..cc646fb8 100644 --- a/docs/sdk/models/operations/setstreamoffsetglobals.md +++ b/docs/sdk/models/operations/setstreamoffsetglobals.md @@ -6,16 +6,16 @@ import { SetStreamOffsetGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetStreamOffsetGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetStreamOffsetGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setstreamoffsetrequest.md b/docs/sdk/models/operations/setstreamoffsetrequest.md index 93932ff8..fdfe8f11 100644 --- a/docs/sdk/models/operations/setstreamoffsetrequest.md +++ b/docs/sdk/models/operations/setstreamoffsetrequest.md @@ -15,16 +15,17 @@ let value: SetStreamOffsetRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `streamId` | *number* | :heavy_check_mark: | The id of the stream | | | `ext` | *string* | :heavy_check_mark: | This is not a part of this endpoint but documented here to satisfy OpenAPI | | | `offset` | *number* | :heavy_minus_sign: | The offest in ms | | \ No newline at end of file diff --git a/docs/sdk/models/operations/setstreamselectionglobals.md b/docs/sdk/models/operations/setstreamselectionglobals.md index 1cf51113..f3e53d73 100644 --- a/docs/sdk/models/operations/setstreamselectionglobals.md +++ b/docs/sdk/models/operations/setstreamselectionglobals.md @@ -6,16 +6,16 @@ import { SetStreamSelectionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SetStreamSelectionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SetStreamSelectionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/setstreamselectionrequest.md b/docs/sdk/models/operations/setstreamselectionrequest.md index 70b0026c..aed24b18 100644 --- a/docs/sdk/models/operations/setstreamselectionrequest.md +++ b/docs/sdk/models/operations/setstreamselectionrequest.md @@ -16,16 +16,17 @@ let value: SetStreamSelectionRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `partId` | *number* | :heavy_check_mark: | The id of the part to select streams on | | | `audioStreamID` | *number* | :heavy_minus_sign: | The id of the audio stream to select in this part | | | `subtitleStreamID` | *number* | :heavy_minus_sign: | The id of the subtitle stream to select in this part. Specify 0 to select no subtitle | | diff --git a/docs/sdk/models/operations/shuffleglobals.md b/docs/sdk/models/operations/shuffleglobals.md index 5c38537b..5d34c716 100644 --- a/docs/sdk/models/operations/shuffleglobals.md +++ b/docs/sdk/models/operations/shuffleglobals.md @@ -6,16 +6,16 @@ import { ShuffleGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: ShuffleGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: ShuffleGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/shufflerequest.md b/docs/sdk/models/operations/shufflerequest.md index 4ab673e8..f18b045a 100644 --- a/docs/sdk/models/operations/shufflerequest.md +++ b/docs/sdk/models/operations/shufflerequest.md @@ -14,14 +14,15 @@ let value: ShuffleRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playQueueId` | *number* | :heavy_check_mark: | The ID of the play queue. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/splititemglobals.md b/docs/sdk/models/operations/splititemglobals.md index 18e714f5..38d3fd7e 100644 --- a/docs/sdk/models/operations/splititemglobals.md +++ b/docs/sdk/models/operations/splititemglobals.md @@ -6,16 +6,16 @@ import { SplitItemGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: SplitItemGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: SplitItemGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/splititemrequest.md b/docs/sdk/models/operations/splititemrequest.md index cea6f06b..8df7094e 100644 --- a/docs/sdk/models/operations/splititemrequest.md +++ b/docs/sdk/models/operations/splititemrequest.md @@ -14,14 +14,15 @@ let value: SplitItemRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/startanalysisglobals.md b/docs/sdk/models/operations/startanalysisglobals.md index 7243b0be..108b93af 100644 --- a/docs/sdk/models/operations/startanalysisglobals.md +++ b/docs/sdk/models/operations/startanalysisglobals.md @@ -6,16 +6,16 @@ import { StartAnalysisGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: StartAnalysisGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: StartAnalysisGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/startanalysisrequest.md b/docs/sdk/models/operations/startanalysisrequest.md index 77b1cfe4..3089ae8c 100644 --- a/docs/sdk/models/operations/startanalysisrequest.md +++ b/docs/sdk/models/operations/startanalysisrequest.md @@ -14,14 +14,15 @@ let value: StartAnalysisRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | Section identifier | | \ No newline at end of file diff --git a/docs/sdk/models/operations/startbifgenerationglobals.md b/docs/sdk/models/operations/startbifgenerationglobals.md index 569006dd..e408474b 100644 --- a/docs/sdk/models/operations/startbifgenerationglobals.md +++ b/docs/sdk/models/operations/startbifgenerationglobals.md @@ -6,16 +6,16 @@ import { StartBifGenerationGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: StartBifGenerationGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: StartBifGenerationGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/startbifgenerationrequest.md b/docs/sdk/models/operations/startbifgenerationrequest.md index 6697bf2b..f656d9c8 100644 --- a/docs/sdk/models/operations/startbifgenerationrequest.md +++ b/docs/sdk/models/operations/startbifgenerationrequest.md @@ -16,15 +16,16 @@ let value: StartBifGenerationRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `force` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttaskglobals.md b/docs/sdk/models/operations/starttaskglobals.md index 036c6a4b..05e902e8 100644 --- a/docs/sdk/models/operations/starttaskglobals.md +++ b/docs/sdk/models/operations/starttaskglobals.md @@ -6,16 +6,16 @@ import { StartTaskGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: StartTaskGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: StartTaskGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttaskrequest.md b/docs/sdk/models/operations/starttaskrequest.md index 0a18e187..49d9b1f6 100644 --- a/docs/sdk/models/operations/starttaskrequest.md +++ b/docs/sdk/models/operations/starttaskrequest.md @@ -14,14 +14,15 @@ let value: StartTaskRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `task` | [operations.StartTaskTask](../../../sdk/models/operations/starttasktask.md) | :heavy_check_mark: | The task name | | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttranscodesessionglobals.md b/docs/sdk/models/operations/starttranscodesessionglobals.md index 611c25e8..af3358b2 100644 --- a/docs/sdk/models/operations/starttranscodesessionglobals.md +++ b/docs/sdk/models/operations/starttranscodesessionglobals.md @@ -6,16 +6,16 @@ import { StartTranscodeSessionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: StartTranscodeSessionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: StartTranscodeSessionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/starttranscodesessionrequest.md b/docs/sdk/models/operations/starttranscodesessionrequest.md index 3103af57..b6151fe4 100644 --- a/docs/sdk/models/operations/starttranscodesessionrequest.md +++ b/docs/sdk/models/operations/starttranscodesessionrequest.md @@ -51,16 +51,17 @@ let value: StartTranscodeSessionRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `transcodeType` | [shared.TranscodeType](../../../sdk/models/shared/transcodetype.md) | :heavy_check_mark: | Type of transcode media | | | `transcodeSessionId` | *string* | :heavy_minus_sign: | Transcode session UUID | | | `extension` | [operations.Extension](../../../sdk/models/operations/extension.md) | :heavy_check_mark: | Extension
| | diff --git a/docs/sdk/models/operations/stopdvrreloadglobals.md b/docs/sdk/models/operations/stopdvrreloadglobals.md index f5d6f0e9..dc9fbcfd 100644 --- a/docs/sdk/models/operations/stopdvrreloadglobals.md +++ b/docs/sdk/models/operations/stopdvrreloadglobals.md @@ -6,16 +6,16 @@ import { StopDVRReloadGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: StopDVRReloadGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: StopDVRReloadGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/stopdvrreloadrequest.md b/docs/sdk/models/operations/stopdvrreloadrequest.md index 67751379..3f2a93c7 100644 --- a/docs/sdk/models/operations/stopdvrreloadrequest.md +++ b/docs/sdk/models/operations/stopdvrreloadrequest.md @@ -14,14 +14,15 @@ let value: StopDVRReloadRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/stopscanglobals.md b/docs/sdk/models/operations/stopscanglobals.md index 46c78d2a..8fb5f44b 100644 --- a/docs/sdk/models/operations/stopscanglobals.md +++ b/docs/sdk/models/operations/stopscanglobals.md @@ -6,16 +6,16 @@ import { StopScanGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: StopScanGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: StopScanGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/stopscanrequest.md b/docs/sdk/models/operations/stopscanrequest.md index ce7713a8..9efb1f09 100644 --- a/docs/sdk/models/operations/stopscanrequest.md +++ b/docs/sdk/models/operations/stopscanrequest.md @@ -14,14 +14,15 @@ let value: StopScanRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `deviceId` | *number* | :heavy_check_mark: | The ID of the device. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/stoptaskglobals.md b/docs/sdk/models/operations/stoptaskglobals.md index 56493fe7..bdd581e7 100644 --- a/docs/sdk/models/operations/stoptaskglobals.md +++ b/docs/sdk/models/operations/stoptaskglobals.md @@ -6,16 +6,16 @@ import { StopTaskGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: StopTaskGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: StopTaskGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/stoptaskrequest.md b/docs/sdk/models/operations/stoptaskrequest.md index 7c0bd77c..7b86fd71 100644 --- a/docs/sdk/models/operations/stoptaskrequest.md +++ b/docs/sdk/models/operations/stoptaskrequest.md @@ -14,14 +14,15 @@ let value: StopTaskRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `task` | [operations.StopTaskTask](../../../sdk/models/operations/stoptasktask.md) | :heavy_check_mark: | The task name | | \ No newline at end of file diff --git a/docs/sdk/models/operations/terminatesessionglobals.md b/docs/sdk/models/operations/terminatesessionglobals.md index 0ede7d11..856ca0e6 100644 --- a/docs/sdk/models/operations/terminatesessionglobals.md +++ b/docs/sdk/models/operations/terminatesessionglobals.md @@ -6,16 +6,16 @@ import { TerminateSessionGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: TerminateSessionGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: TerminateSessionGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/terminatesessionrequest.md b/docs/sdk/models/operations/terminatesessionrequest.md index 3258a535..b4316684 100644 --- a/docs/sdk/models/operations/terminatesessionrequest.md +++ b/docs/sdk/models/operations/terminatesessionrequest.md @@ -15,15 +15,16 @@ let value: TerminateSessionRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sessionId` | *string* | :heavy_check_mark: | The session id (found in the `Session` element in [/status/sessions](#tag/Status/operation/statusGetSlash)) | cdefghijklmnopqrstuvwxyz | | `reason` | *string* | :heavy_minus_sign: | The reason to give to the user (typically displayed in the client) | Stop Playing | \ No newline at end of file diff --git a/docs/sdk/models/operations/transcodeimageglobals.md b/docs/sdk/models/operations/transcodeimageglobals.md index f45634c2..c71699f3 100644 --- a/docs/sdk/models/operations/transcodeimageglobals.md +++ b/docs/sdk/models/operations/transcodeimageglobals.md @@ -6,16 +6,16 @@ import { TranscodeImageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: TranscodeImageGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: TranscodeImageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/transcodeimagerequest.md b/docs/sdk/models/operations/transcodeimagerequest.md index e67723e6..bf5ddc95 100644 --- a/docs/sdk/models/operations/transcodeimagerequest.md +++ b/docs/sdk/models/operations/transcodeimagerequest.md @@ -20,16 +20,17 @@ let value: TranscodeImageRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `url` | *string* | :heavy_minus_sign: | The source URL for the image to transcode. Note, if this URL requires a token such as `X-Plex-Token`, it should be given as a query parameter to this url. | /library/metadata/265/thumb/1715112705 | | `format` | [operations.Format](../../../sdk/models/operations/format.md) | :heavy_minus_sign: | The output format for the image; defaults to jpg | | | `width` | *number* | :heavy_minus_sign: | The desired width of the output image | | diff --git a/docs/sdk/models/operations/transcodesubtitlesglobals.md b/docs/sdk/models/operations/transcodesubtitlesglobals.md index 6d49e6d8..28ac6743 100644 --- a/docs/sdk/models/operations/transcodesubtitlesglobals.md +++ b/docs/sdk/models/operations/transcodesubtitlesglobals.md @@ -6,16 +6,16 @@ import { TranscodeSubtitlesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: TranscodeSubtitlesGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: TranscodeSubtitlesGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/transcodesubtitlesrequest.md b/docs/sdk/models/operations/transcodesubtitlesrequest.md index 2ddc3d9a..97204bd0 100644 --- a/docs/sdk/models/operations/transcodesubtitlesrequest.md +++ b/docs/sdk/models/operations/transcodesubtitlesrequest.md @@ -49,16 +49,17 @@ let value: TranscodeSubtitlesRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `transcodeType` | [shared.TranscodeType](../../../sdk/models/shared/transcodetype.md) | :heavy_check_mark: | Type of transcode media | | | `transcodeSessionId` | *string* | :heavy_minus_sign: | Transcode session UUID | | | `advancedSubtitles` | [shared.AdvancedSubtitles](../../../sdk/models/shared/advancedsubtitles.md) | :heavy_minus_sign: | Indicates how incompatible advanced subtitles (such as ass/ssa) should be included: * 'burn' - Burn incompatible advanced text subtitles into the video stream * 'text' - Transcode incompatible advanced text subtitles to a compatible text format, even if some markup is lost
| burn | diff --git a/docs/sdk/models/operations/triggerfallbackglobals.md b/docs/sdk/models/operations/triggerfallbackglobals.md index d0678c29..550bf63e 100644 --- a/docs/sdk/models/operations/triggerfallbackglobals.md +++ b/docs/sdk/models/operations/triggerfallbackglobals.md @@ -6,16 +6,16 @@ import { TriggerFallbackGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: TriggerFallbackGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: TriggerFallbackGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/triggerfallbackrequest.md b/docs/sdk/models/operations/triggerfallbackrequest.md index 7eef22e8..4157a3ac 100644 --- a/docs/sdk/models/operations/triggerfallbackrequest.md +++ b/docs/sdk/models/operations/triggerfallbackrequest.md @@ -15,15 +15,16 @@ let value: TriggerFallbackRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `transcodeType` | [shared.TranscodeType](../../../sdk/models/shared/transcodetype.md) | :heavy_check_mark: | Type of transcode media | | | `transcodeSessionId` | *string* | :heavy_minus_sign: | Transcode session UUID | | \ No newline at end of file diff --git a/docs/sdk/models/operations/tunechannelglobals.md b/docs/sdk/models/operations/tunechannelglobals.md index 824ae979..1cac4fce 100644 --- a/docs/sdk/models/operations/tunechannelglobals.md +++ b/docs/sdk/models/operations/tunechannelglobals.md @@ -6,16 +6,16 @@ import { TuneChannelGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: TuneChannelGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: TuneChannelGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/tunechannelrequest.md b/docs/sdk/models/operations/tunechannelrequest.md index 90308b88..02e21974 100644 --- a/docs/sdk/models/operations/tunechannelrequest.md +++ b/docs/sdk/models/operations/tunechannelrequest.md @@ -15,15 +15,16 @@ let value: TuneChannelRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `dvrId` | *number* | :heavy_check_mark: | The ID of the DVR. | | | `channel` | *string* | :heavy_check_mark: | The channel ID to tune | 2.1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/unmatchglobals.md b/docs/sdk/models/operations/unmatchglobals.md index 5c1a560a..a6f038bd 100644 --- a/docs/sdk/models/operations/unmatchglobals.md +++ b/docs/sdk/models/operations/unmatchglobals.md @@ -6,16 +6,16 @@ import { UnmatchGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: UnmatchGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: UnmatchGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/unmatchrequest.md b/docs/sdk/models/operations/unmatchrequest.md index 43893e73..6bc5dd1d 100644 --- a/docs/sdk/models/operations/unmatchrequest.md +++ b/docs/sdk/models/operations/unmatchrequest.md @@ -14,14 +14,15 @@ let value: UnmatchRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/unscrobbleglobals.md b/docs/sdk/models/operations/unscrobbleglobals.md index 9ceb6c9a..8e8d7814 100644 --- a/docs/sdk/models/operations/unscrobbleglobals.md +++ b/docs/sdk/models/operations/unscrobbleglobals.md @@ -6,16 +6,16 @@ import { UnscrobbleGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: UnscrobbleGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: UnscrobbleGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/unscrobblerequest.md b/docs/sdk/models/operations/unscrobblerequest.md index 1a57d8c2..7fd0636e 100644 --- a/docs/sdk/models/operations/unscrobblerequest.md +++ b/docs/sdk/models/operations/unscrobblerequest.md @@ -14,16 +14,17 @@ let value: UnscrobbleRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `identifier` | *string* | :heavy_check_mark: | The identifier of the media provider containing the media to rate. Typically `com.plexapp.plugins.library` | | | `key` | *string* | :heavy_minus_sign: | The key of the item to rate. This is the `ratingKey` found in metadata items | | | `uri` | *string* | :heavy_minus_sign: | The URI of the item to mark as played. See intro for description of the URIs | | \ No newline at end of file diff --git a/docs/sdk/models/operations/unshuffleglobals.md b/docs/sdk/models/operations/unshuffleglobals.md index 7aeb5bd9..0c9690c7 100644 --- a/docs/sdk/models/operations/unshuffleglobals.md +++ b/docs/sdk/models/operations/unshuffleglobals.md @@ -6,16 +6,16 @@ import { UnshuffleGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: UnshuffleGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: UnshuffleGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/unshufflerequest.md b/docs/sdk/models/operations/unshufflerequest.md index 9ad35fba..9184db48 100644 --- a/docs/sdk/models/operations/unshufflerequest.md +++ b/docs/sdk/models/operations/unshufflerequest.md @@ -14,14 +14,15 @@ let value: UnshuffleRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playQueueId` | *number* | :heavy_check_mark: | The ID of the play queue. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/updatehubvisibilityglobals.md b/docs/sdk/models/operations/updatehubvisibilityglobals.md index 915c3406..134de9a9 100644 --- a/docs/sdk/models/operations/updatehubvisibilityglobals.md +++ b/docs/sdk/models/operations/updatehubvisibilityglobals.md @@ -6,16 +6,16 @@ import { UpdateHubVisibilityGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: UpdateHubVisibilityGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: UpdateHubVisibilityGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/updatehubvisibilityrequest.md b/docs/sdk/models/operations/updatehubvisibilityrequest.md index eb3df113..31189fec 100644 --- a/docs/sdk/models/operations/updatehubvisibilityrequest.md +++ b/docs/sdk/models/operations/updatehubvisibilityrequest.md @@ -19,16 +19,17 @@ let value: UpdateHubVisibilityRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *number* | :heavy_check_mark: | The section ID for the hubs to change | | | `identifier` | *string* | :heavy_check_mark: | The identifier of the hub to change | | | `promotedToRecommended` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | Whether this hub should be displayed in recommended | 1 | diff --git a/docs/sdk/models/operations/updateitemartworkglobals.md b/docs/sdk/models/operations/updateitemartworkglobals.md index 66fad52f..261152ad 100644 --- a/docs/sdk/models/operations/updateitemartworkglobals.md +++ b/docs/sdk/models/operations/updateitemartworkglobals.md @@ -6,16 +6,16 @@ import { UpdateItemArtworkGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: UpdateItemArtworkGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: UpdateItemArtworkGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateitemartworkrequest.md b/docs/sdk/models/operations/updateitemartworkrequest.md index 6d27a9e0..dd678737 100644 --- a/docs/sdk/models/operations/updateitemartworkrequest.md +++ b/docs/sdk/models/operations/updateitemartworkrequest.md @@ -15,16 +15,17 @@ let value: UpdateItemArtworkRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `ids` | *string* | :heavy_check_mark: | N/A | | | `element` | [operations.UpdateItemArtworkElement](../../../sdk/models/operations/updateitemartworkelement.md) | :heavy_check_mark: | N/A | | | `url` | *string* | :heavy_minus_sign: | The url of the new asset. | | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateitemsglobals.md b/docs/sdk/models/operations/updateitemsglobals.md index bf9290de..e96a1e10 100644 --- a/docs/sdk/models/operations/updateitemsglobals.md +++ b/docs/sdk/models/operations/updateitemsglobals.md @@ -6,16 +6,16 @@ import { UpdateItemsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: UpdateItemsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: UpdateItemsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateitemsrequest.md b/docs/sdk/models/operations/updateitemsrequest.md index b0b24304..38d76595 100644 --- a/docs/sdk/models/operations/updateitemsrequest.md +++ b/docs/sdk/models/operations/updateitemsrequest.md @@ -16,16 +16,17 @@ let value: UpdateItemsRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `sectionId` | *string* | :heavy_check_mark: | The id of the section | | | `type` | *string* | :heavy_minus_sign: | N/A | | | `filters` | *string* | :heavy_minus_sign: | The filters to apply to determine which items should be modified | | diff --git a/docs/sdk/models/operations/updateplaylistglobals.md b/docs/sdk/models/operations/updateplaylistglobals.md index aa6af49c..62a06638 100644 --- a/docs/sdk/models/operations/updateplaylistglobals.md +++ b/docs/sdk/models/operations/updateplaylistglobals.md @@ -6,16 +6,16 @@ import { UpdatePlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: UpdatePlaylistGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: UpdatePlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateplaylistrequest.md b/docs/sdk/models/operations/updateplaylistrequest.md index e92b7f2c..b21a8123 100644 --- a/docs/sdk/models/operations/updateplaylistrequest.md +++ b/docs/sdk/models/operations/updateplaylistrequest.md @@ -14,14 +14,15 @@ let value: UpdatePlaylistRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `playlistId` | *number* | :heavy_check_mark: | The ID of the playlist | | \ No newline at end of file diff --git a/docs/sdk/models/operations/uploadplaylistglobals.md b/docs/sdk/models/operations/uploadplaylistglobals.md index 8e513784..c18126bb 100644 --- a/docs/sdk/models/operations/uploadplaylistglobals.md +++ b/docs/sdk/models/operations/uploadplaylistglobals.md @@ -6,16 +6,16 @@ import { UploadPlaylistGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: UploadPlaylistGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: UploadPlaylistGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/uploadplaylistrequest.md b/docs/sdk/models/operations/uploadplaylistrequest.md index 14c53d0a..b6bbac19 100644 --- a/docs/sdk/models/operations/uploadplaylistrequest.md +++ b/docs/sdk/models/operations/uploadplaylistrequest.md @@ -16,15 +16,16 @@ let value: UploadPlaylistRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `path` | *string* | :heavy_minus_sign: | 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` | [shared.BoolInt](../../../sdk/models/shared/boolint.md) | :heavy_minus_sign: | 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. | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/voicesearchhubsglobals.md b/docs/sdk/models/operations/voicesearchhubsglobals.md index d4b9c26b..1e2e7f7a 100644 --- a/docs/sdk/models/operations/voicesearchhubsglobals.md +++ b/docs/sdk/models/operations/voicesearchhubsglobals.md @@ -6,16 +6,16 @@ import { VoiceSearchHubsGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: VoiceSearchHubsGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: VoiceSearchHubsGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/voicesearchhubsrequest.md b/docs/sdk/models/operations/voicesearchhubsrequest.md index 6c3baf9c..54b788ed 100644 --- a/docs/sdk/models/operations/voicesearchhubsrequest.md +++ b/docs/sdk/models/operations/voicesearchhubsrequest.md @@ -14,16 +14,17 @@ let value: VoiceSearchHubsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `query` | *string* | :heavy_check_mark: | The query term | | | `type` | *number* | :heavy_minus_sign: | The metadata type to filter by | | | `limit` | *number* | :heavy_minus_sign: | The number of items to return per hub. 3 if not specified | | \ No newline at end of file diff --git a/docs/sdk/models/operations/writemessageglobals.md b/docs/sdk/models/operations/writemessageglobals.md index a205f226..0efade09 100644 --- a/docs/sdk/models/operations/writemessageglobals.md +++ b/docs/sdk/models/operations/writemessageglobals.md @@ -6,16 +6,16 @@ import { WriteMessageGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: WriteMessageGlobals = { - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }; ``` @@ -23,13 +23,14 @@ let value: WriteMessageGlobals = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | \ No newline at end of file diff --git a/docs/sdk/models/operations/writemessagerequest.md b/docs/sdk/models/operations/writemessagerequest.md index 4c39955f..ea8c7e5a 100644 --- a/docs/sdk/models/operations/writemessagerequest.md +++ b/docs/sdk/models/operations/writemessagerequest.md @@ -12,16 +12,17 @@ let value: WriteMessageRequest = {}; | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | -| `xPlexVersion` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | -| `xPlexPlatform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | -| `xPlexPlatformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | -| `xPlexDevice` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | -| `xPlexModel` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | -| `xPlexDeviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | -| `xPlexDeviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | -| `xPlexMarketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | +| `accepts` | [shared.Accepts](../../../sdk/models/shared/accepts.md) | :heavy_minus_sign: | Indicates the client accepts the indicated media types | | +| `clientIdentifier` | *string* | :heavy_minus_sign: | An opaque identifier unique to the client | abc123 | +| `product` | *string* | :heavy_minus_sign: | The name of the client product | Plex for Roku | +| `version` | *string* | :heavy_minus_sign: | The version of the client application | 2.4.1 | +| `platform` | *string* | :heavy_minus_sign: | The platform of the client | Roku | +| `platformVersion` | *string* | :heavy_minus_sign: | The version of the platform | 4.3 build 1057 | +| `device` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 | +| `model` | *string* | :heavy_minus_sign: | A potentially less friendly identifier for the device model | 4200X | +| `deviceVendor` | *string* | :heavy_minus_sign: | The device vendor | Roku | +| `deviceName` | *string* | :heavy_minus_sign: | A friendly name for the client | Living Room TV | +| `marketplace` | *string* | :heavy_minus_sign: | The marketplace on which the client application is distributed | googlePlay | | `level` | [operations.WriteMessageLevel](../../../sdk/models/operations/writemessagelevel.md) | :heavy_minus_sign: | An integer log level to write to the PMS log with.
- 0: Error
- 1: Warning
- 2: Info
- 3: Debug
- 4: Verbose
| | | `message` | *string* | :heavy_minus_sign: | The text of the message to write to the log. | | | `source` | *string* | :heavy_minus_sign: | A string indicating the source of the message. | | \ No newline at end of file diff --git a/docs/sdk/models/shared/accepts.md b/docs/sdk/models/shared/accepts.md new file mode 100644 index 00000000..b9f1a59d --- /dev/null +++ b/docs/sdk/models/shared/accepts.md @@ -0,0 +1,16 @@ +# Accepts + +## Example Usage + +```typescript +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; + +let value: Accepts = Accepts.ApplicationXml; +``` + +## Values + +| Name | Value | +| ----------------- | ----------------- | +| `ApplicationJson` | application/json | +| `ApplicationXml` | application/xml | \ No newline at end of file diff --git a/docs/sdk/models/shared/security.md b/docs/sdk/models/shared/security.md index 80d055ed..c4bdd82e 100644 --- a/docs/sdk/models/shared/security.md +++ b/docs/sdk/models/shared/security.md @@ -12,4 +12,4 @@ let value: Security = {}; | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `apiKey` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `token` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index e2fe8dc6..94cf9679 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -88,18 +88,20 @@ Cancel a running activity. Admins can cancel all activities but other users can ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -120,20 +122,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { activitiesCancelActivity } from "@lukehagar/plexjs/funcs/activitiesCancelActivity.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index eec2ede2..795e054b 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -223,18 +223,20 @@ This endpoint will stop a currently running task by name, or remove it from the ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { StopTaskTask } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -256,20 +258,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { butlerStopTask } from "@lukehagar/plexjs/funcs/butlerStopTask.js"; import { StopTaskTask } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -317,18 +321,20 @@ This endpoint will attempt to start a specific Butler task by name. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { StartTaskTask } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -350,20 +356,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { butlerStartTask } from "@lukehagar/plexjs/funcs/butlerStartTask.js"; import { StartTaskTask } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 96f1cb1f..52f651d6 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -18,18 +18,20 @@ Create a collection in the library ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -50,20 +52,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { collectionsCreateCollection } from "@lukehagar/plexjs/funcs/collectionsCreateCollection.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/content/README.md b/docs/sdks/content/README.md index 813509f2..58bc7eab 100644 --- a/docs/sdks/content/README.md +++ b/docs/sdks/content/README.md @@ -30,18 +30,20 @@ Get items in a collection. Note if this collection contains more than 100 items ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -62,20 +64,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetCollectionItems } from "@lukehagar/plexjs/funcs/contentGetCollectionItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -121,19 +125,20 @@ Get one or more metadata items. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -162,21 +167,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetMetadataItem } from "@lukehagar/plexjs/funcs/contentGetMetadataItem.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -230,18 +236,20 @@ Get all albums in a music section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -262,20 +270,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetAlbums } from "@lukehagar/plexjs/funcs/contentGetAlbums.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -321,18 +331,20 @@ Get the items in a section, potentially filtering them ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -353,20 +365,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentListContent } from "@lukehagar/plexjs/funcs/contentListContent.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -412,18 +426,20 @@ Get all leaves in a section (such as episodes in a show section) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -444,20 +460,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetAllLeaves } from "@lukehagar/plexjs/funcs/contentGetAllLeaves.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -503,18 +521,20 @@ Get artwork for a library section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -535,20 +555,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetArts } from "@lukehagar/plexjs/funcs/contentGetArts.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -594,18 +616,20 @@ Get categories in a library section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -626,20 +650,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetCategories } from "@lukehagar/plexjs/funcs/contentGetCategories.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -685,18 +711,20 @@ Get clusters in a library section (typically for photos) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -717,20 +745,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetCluster } from "@lukehagar/plexjs/funcs/contentGetCluster.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -776,18 +806,20 @@ Get a list of audio tracks starting at one and ending at another which are simil ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -810,20 +842,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetSonicPath } from "@lukehagar/plexjs/funcs/contentGetSonicPath.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -871,18 +905,20 @@ Get all folder locations of the media in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -903,20 +939,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetFolders } from "@lukehagar/plexjs/funcs/contentGetFolders.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -962,18 +1000,20 @@ Get moments in a library section (typically for photos) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -994,20 +1034,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentListMoments } from "@lukehagar/plexjs/funcs/contentListMoments.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1053,18 +1095,20 @@ Get the nearest audio tracks to a particular analysis ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1086,20 +1130,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetSonicallySimilar } from "@lukehagar/plexjs/funcs/contentGetSonicallySimilar.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1146,18 +1192,20 @@ Get an image for the collection based on the items within ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1179,20 +1227,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { contentGetCollectionImage } from "@lukehagar/plexjs/funcs/contentGetCollectionImage.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/devices/README.md b/docs/sdks/devices/README.md index 664f466c..218cf545 100644 --- a/docs/sdks/devices/README.md +++ b/docs/sdks/devices/README.md @@ -64,18 +64,20 @@ Get available grabbers visible to the server ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -96,20 +98,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesGetAvailableGrabbers } from "@lukehagar/plexjs/funcs/devicesGetAvailableGrabbers.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -219,18 +223,20 @@ This endpoint adds a device to an existing grabber. The device is identified, an ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -251,20 +257,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesAddDevice } from "@lukehagar/plexjs/funcs/devicesAddDevice.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -374,18 +382,20 @@ Remove a devices by its id along with its channel mappings ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -406,20 +416,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesRemoveDevice } from "@lukehagar/plexjs/funcs/devicesRemoveDevice.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -465,18 +477,20 @@ Get a device's details by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -497,20 +511,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesGetDeviceDetails } from "@lukehagar/plexjs/funcs/devicesGetDeviceDetails.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -556,19 +572,20 @@ Enable or disable a device by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -590,21 +607,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesModifyDevice } from "@lukehagar/plexjs/funcs/devicesModifyDevice.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -651,18 +669,20 @@ Set a device's channel mapping ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -701,20 +721,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesSetChannelmap } from "@lukehagar/plexjs/funcs/devicesSetChannelmap.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -778,18 +800,20 @@ Get a device's channels by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -810,20 +834,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesGetDevicesChannels } from "@lukehagar/plexjs/funcs/devicesGetDevicesChannels.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -869,18 +895,20 @@ Set device preferences by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -901,20 +929,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesSetDevicePreferences } from "@lukehagar/plexjs/funcs/devicesSetDevicePreferences.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -960,18 +990,20 @@ Tell a device to stop scanning for channels ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -992,20 +1024,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesStopScan } from "@lukehagar/plexjs/funcs/devicesStopScan.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1051,18 +1085,20 @@ Tell a device to scan for channels ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1084,20 +1120,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesScan } from "@lukehagar/plexjs/funcs/devicesScan.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1144,24 +1182,26 @@ Get a device's thumb for display to the user ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const result = await plexAPI.devices.getThumb({ deviceId: 960617, - version: 1025, + versionPathParameter: 1025, }); console.log(result); @@ -1177,26 +1217,28 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { devicesGetThumb } from "@lukehagar/plexjs/funcs/devicesGetThumb.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const res = await devicesGetThumb(plexAPI, { deviceId: 960617, - version: 1025, + versionPathParameter: 1025, }); if (res.ok) { const { value: result } = res; diff --git a/docs/sdks/downloadqueue/README.md b/docs/sdks/downloadqueue/README.md index 4647d595..5c73b546 100644 --- a/docs/sdks/downloadqueue/README.md +++ b/docs/sdks/downloadqueue/README.md @@ -96,18 +96,20 @@ Get a download queue by its id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -128,20 +130,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueGetDownloadQueue } from "@lukehagar/plexjs/funcs/downloadQueueGetDownloadQueue.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -190,19 +194,20 @@ Add items to the download queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { AdvancedSubtitles, BoolInt, LocationParameter, Protocol } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, Protocol } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -252,21 +257,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueAddDownloadQueueItems } from "@lukehagar/plexjs/funcs/downloadQueueAddDownloadQueueItems.js"; -import { AdvancedSubtitles, BoolInt, LocationParameter, Protocol } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, LocationParameter, Protocol } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -344,18 +350,20 @@ Get items from a download queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -376,20 +384,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueListDownloadQueueItems } from "@lukehagar/plexjs/funcs/downloadQueueListDownloadQueueItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -438,18 +448,20 @@ Grab the decision for a download queue item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -471,20 +483,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueGetItemDecision } from "@lukehagar/plexjs/funcs/downloadQueueGetItemDecision.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -534,18 +548,20 @@ Grab the media for a download queue item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -567,20 +583,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueGetDownloadQueueMedia } from "@lukehagar/plexjs/funcs/downloadQueueGetDownloadQueueMedia.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -627,18 +645,20 @@ delete items from a download queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -664,20 +684,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueRemoveDownloadQueueItems } from "@lukehagar/plexjs/funcs/downloadQueueRemoveDownloadQueueItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -731,18 +753,20 @@ Get items from a download queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -768,20 +792,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueGetDownloadQueueItems } from "@lukehagar/plexjs/funcs/downloadQueueGetDownloadQueueItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -835,18 +861,20 @@ Reprocess download queue items with previous decision parameters ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -872,20 +900,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { downloadQueueRestartProcessingDownloadQueueItems } from "@lukehagar/plexjs/funcs/downloadQueueRestartProcessingDownloadQueueItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/dvrs/README.md b/docs/sdks/dvrs/README.md index 19f47b4e..9d101ffb 100644 --- a/docs/sdks/dvrs/README.md +++ b/docs/sdks/dvrs/README.md @@ -94,24 +94,26 @@ Creation of a DVR, after creation of a devcie and a lineup is selected ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const result = await plexAPI.dvRs.createDVR({ lineup: "lineup://tv.plex.providers.epg.onconnect/USA-HI51418-DEFAULT", - device: [ + deviceQueryParameter: [ "d", "e", "v", @@ -182,26 +184,28 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsCreateDVR } from "@lukehagar/plexjs/funcs/dvRsCreateDVR.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const res = await dvRsCreateDVR(plexAPI, { lineup: "lineup://tv.plex.providers.epg.onconnect/USA-HI51418-DEFAULT", - device: [ + deviceQueryParameter: [ "d", "e", "v", @@ -297,18 +301,20 @@ Delete a single DVR by its id (key) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -329,20 +335,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsDeleteDVR } from "@lukehagar/plexjs/funcs/dvRsDeleteDVR.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -388,18 +396,20 @@ Get a single DVR by its id (key) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -420,20 +430,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsGetDVR } from "@lukehagar/plexjs/funcs/dvRsGetDVR.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -479,18 +491,20 @@ Deletes a DVR device's lineup. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -512,20 +526,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsDeleteLineup } from "@lukehagar/plexjs/funcs/dvRsDeleteLineup.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -572,18 +588,20 @@ Add a lineup to a DVR device's set of lineups. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -605,20 +623,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsAddLineup } from "@lukehagar/plexjs/funcs/dvRsAddLineup.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -665,18 +685,20 @@ Set DVR preferences by name avd value ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -697,20 +719,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsSetDVRPreferences } from "@lukehagar/plexjs/funcs/dvRsSetDVRPreferences.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -756,18 +780,20 @@ Tell a DVR to stop reloading program guide ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -788,20 +814,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsStopDVRReload } from "@lukehagar/plexjs/funcs/dvRsStopDVRReload.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -847,18 +875,20 @@ Tell a DVR to reload program guide ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -879,20 +909,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsReloadGuide } from "@lukehagar/plexjs/funcs/dvRsReloadGuide.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -938,18 +970,20 @@ Tune a channel on a DVR to the provided channel ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -971,20 +1005,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsTuneChannel } from "@lukehagar/plexjs/funcs/dvRsTuneChannel.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1031,18 +1067,20 @@ Remove a device from an existing DVR ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1064,20 +1102,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsRemoveDeviceFromDVR } from "@lukehagar/plexjs/funcs/dvRsRemoveDeviceFromDVR.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1124,18 +1164,20 @@ Add a device to an existing DVR ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1157,20 +1199,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { dvRsAddDeviceToDVR } from "@lukehagar/plexjs/funcs/dvRsAddDeviceToDVR.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/epg/README.md b/docs/sdks/epg/README.md index 2b91791a..7d11dccc 100644 --- a/docs/sdks/epg/README.md +++ b/docs/sdks/epg/README.md @@ -27,23 +27,25 @@ Compute the best channel map, given device and lineup ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const result = await plexAPI.epg.computeChannelMap({ - device: "Mobile", + deviceQueryParameter: "Mobile", lineup: "", }); @@ -60,25 +62,27 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { epgComputeChannelMap } from "@lukehagar/plexjs/funcs/epgComputeChannelMap.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const res = await epgComputeChannelMap(plexAPI, { - device: "Mobile", + deviceQueryParameter: "Mobile", lineup: "", }); if (res.ok) { @@ -120,18 +124,20 @@ Get channels for a lineup within an EPG provider ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -152,20 +158,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { epgGetChannels } from "@lukehagar/plexjs/funcs/epgGetChannels.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -339,23 +347,25 @@ Compute the best lineup, given lineup group and device ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const result = await plexAPI.epg.getLineup({ - device: "Desktop", + deviceQueryParameter: "Desktop", lineupGroup: "", }); @@ -372,25 +382,27 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { epgGetLineup } from "@lukehagar/plexjs/funcs/epgGetLineup.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { const res = await epgGetLineup(plexAPI, { - device: "Desktop", + deviceQueryParameter: "Desktop", lineupGroup: "", }); if (res.ok) { @@ -432,18 +444,20 @@ Get the channels across multiple lineups ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -467,20 +481,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { epgGetLineupChannels } from "@lukehagar/plexjs/funcs/epgGetLineupChannels.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -529,18 +545,20 @@ Returns a list of lineups for a given country, EPG provider and postal code ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -562,20 +580,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { epgGetCountriesLineups } from "@lukehagar/plexjs/funcs/epgGetCountriesLineups.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -622,18 +642,20 @@ Get regions for a country within an EPG provider ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -655,20 +677,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { epgGetCountryRegions } from "@lukehagar/plexjs/funcs/epgGetCountryRegions.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -715,18 +739,20 @@ Get lineups for a region within an EPG provider ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -749,20 +775,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { epgListLineups } from "@lukehagar/plexjs/funcs/epgListLineups.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index 45f49c43..e576f4f0 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -22,18 +22,20 @@ Connect to the event source to get a stream of events ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -52,20 +54,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { eventsGetNotifications } from "@lukehagar/plexjs/funcs/eventsGetNotifications.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -109,18 +113,20 @@ Connect to the web socket to get a stream of events ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -139,20 +145,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { eventsConnectWebSocket } from "@lukehagar/plexjs/funcs/eventsConnectWebSocket.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md index fcec5e38..88c91644 100644 --- a/docs/sdks/general/README.md +++ b/docs/sdks/general/README.md @@ -21,18 +21,20 @@ Information about this PMS setup and configuration ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -51,20 +53,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { generalGetServerInfo } from "@lukehagar/plexjs/funcs/generalGetServerInfo.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -172,19 +176,20 @@ If a caller requires connection details and a transient token for a source that ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -206,21 +211,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { generalGetSourceConnectionInformation } from "@lukehagar/plexjs/funcs/generalGetSourceConnectionInformation.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -269,18 +275,20 @@ Note: This endpoint responds to all HTTP verbs but POST in preferred ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -303,20 +311,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { generalGetTransientToken } from "@lukehagar/plexjs/funcs/generalGetTransientToken.js"; import { GetTransientTokenScope, GetTransientTokenType } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index 75fc8011..aa421973 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -31,19 +31,20 @@ Get the global hubs in this PMS ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -64,21 +65,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetAllHubs } from "@lukehagar/plexjs/funcs/hubsGetAllHubs.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -124,18 +126,20 @@ Get the global continue watching hub ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -154,20 +158,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetContinueWatching } from "@lukehagar/plexjs/funcs/hubsGetContinueWatching.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -211,18 +217,20 @@ Get the items within a single hub specified by identifier ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -247,20 +255,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetHubItems } from "@lukehagar/plexjs/funcs/hubsGetHubItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -310,18 +320,20 @@ Get the global hubs which are promoted (should be displayed on the home screen) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -340,20 +352,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetPromotedHubs } from "@lukehagar/plexjs/funcs/hubsGetPromotedHubs.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -397,19 +411,20 @@ Get the hubs for a section by metadata item. Currently only for music sections ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -431,21 +446,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetMetadataHubs } from "@lukehagar/plexjs/funcs/hubsGetMetadataHubs.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -492,19 +508,20 @@ Get the hubs for a metadata to be displayed in post play ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -526,21 +543,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetPostplayHubs } from "@lukehagar/plexjs/funcs/hubsGetPostplayHubs.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -587,19 +605,20 @@ Get the hubs for a metadata related to the provided metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -621,21 +640,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetRelatedHubs } from "@lukehagar/plexjs/funcs/hubsGetRelatedHubs.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -682,19 +702,20 @@ Get the hubs for a single section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -716,21 +737,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsGetSectionHubs } from "@lukehagar/plexjs/funcs/hubsGetSectionHubs.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -777,18 +799,20 @@ Reset hubs for this section to defaults and delete custom hubs ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -809,20 +833,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsResetSectionDefaults } from "@lukehagar/plexjs/funcs/hubsResetSectionDefaults.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -868,18 +894,20 @@ Get the list of hubs including both built-in and custom ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -900,20 +928,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsListHubs } from "@lukehagar/plexjs/funcs/hubsListHubs.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -959,19 +989,20 @@ Create a custom hub based on a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -996,21 +1027,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsCreateCustomHub } from "@lukehagar/plexjs/funcs/hubsCreateCustomHub.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1060,18 +1092,20 @@ Changed the ordering of a hub among others hubs ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1093,20 +1127,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsMoveHub } from "@lukehagar/plexjs/funcs/hubsMoveHub.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1153,18 +1189,20 @@ Delete a custom hub from the server ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1186,20 +1224,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsDeleteCustomHub } from "@lukehagar/plexjs/funcs/hubsDeleteCustomHub.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1246,19 +1286,20 @@ Changed the visibility of a hub for both the admin and shared users ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1283,21 +1324,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { hubsUpdateHubVisibility } from "@lukehagar/plexjs/funcs/hubsUpdateHubVisibility.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 52c3bdfb..434e4f7b 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -96,18 +96,20 @@ Request all metadata items according to a query. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -126,20 +128,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetLibraryItems } from "@lukehagar/plexjs/funcs/libraryGetLibraryItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -312,19 +316,20 @@ Note that any of the parameters passed to the metadata details endpoint (e.g. `i ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -348,21 +353,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryIngestTransientItem } from "@lukehagar/plexjs/funcs/libraryIngestTransientItem.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -415,19 +421,20 @@ Episodes require either a season/episode pair, or an air date (or both). Either ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -450,21 +457,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetLibraryMatches } from "@lukehagar/plexjs/funcs/libraryGetLibraryMatches.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -512,19 +520,20 @@ Initiate optimize on the database. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -545,21 +554,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryOptimizeDatabase } from "@lukehagar/plexjs/funcs/libraryOptimizeDatabase.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -608,18 +618,20 @@ This retrieves 100 random artwork paths in the specified sections and returns th ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -643,20 +655,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetRandomArtwork } from "@lukehagar/plexjs/funcs/libraryGetRandomArtwork.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -770,19 +784,20 @@ Add a new library section to the server ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -813,21 +828,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryAddSection } from "@lukehagar/plexjs/funcs/libraryAddSection.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -947,18 +963,20 @@ Get a section's preferences for a metadata type ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -979,20 +997,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetSectionsPrefs } from "@lukehagar/plexjs/funcs/libraryGetSectionsPrefs.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1038,18 +1058,20 @@ Tell PMS to refresh all section metadata ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1068,20 +1090,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryRefreshSectionsMetadata } from "@lukehagar/plexjs/funcs/libraryRefreshSectionsMetadata.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1125,18 +1149,20 @@ Get all library tags of a type ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1155,20 +1181,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetTags } from "@lukehagar/plexjs/funcs/libraryGetTags.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1212,19 +1240,20 @@ Delete a single metadata item from the library, deleting media as well ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1246,21 +1275,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteMetadataItem } from "@lukehagar/plexjs/funcs/libraryDeleteMetadataItem.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1307,18 +1337,20 @@ Edit metadata items setting fields ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1342,20 +1374,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryEditMetadataItem } from "@lukehagar/plexjs/funcs/libraryEditMetadataItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1404,18 +1438,20 @@ Start the detection of ads in a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1436,20 +1472,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDetectAds } from "@lukehagar/plexjs/funcs/libraryDetectAds.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1495,18 +1533,20 @@ Get the leaves for a metadata item such as the episodes in a show ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1527,20 +1567,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetAllItemLeaves } from "@lukehagar/plexjs/funcs/libraryGetAllItemLeaves.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1586,18 +1628,20 @@ Start the analysis of a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1618,20 +1662,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryAnalyzeMetadata } from "@lukehagar/plexjs/funcs/libraryAnalyzeMetadata.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1677,19 +1723,20 @@ Start the chapter thumb generation for an item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1711,21 +1758,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGenerateThumbs } from "@lukehagar/plexjs/funcs/libraryGenerateThumbs.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1772,19 +1820,20 @@ Start credit detection on a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1807,21 +1856,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDetectCredits } from "@lukehagar/plexjs/funcs/libraryDetectCredits.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1869,18 +1919,20 @@ Get the extras for a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1901,20 +1953,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetExtras } from "@lukehagar/plexjs/funcs/libraryGetExtras.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1960,18 +2014,20 @@ Add an extra to a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1993,20 +2049,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryAddExtras } from "@lukehagar/plexjs/funcs/libraryAddExtras.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2053,18 +2111,20 @@ Get a bundle file for a metadata or media item. This is either an image or a mp ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2085,20 +2145,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetFile } from "@lukehagar/plexjs/funcs/libraryGetFile.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2144,19 +2206,20 @@ Start the indexing (BIF generation) of an item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2178,21 +2241,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryStartBifGeneration } from "@lukehagar/plexjs/funcs/libraryStartBifGeneration.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2239,19 +2303,20 @@ Start the detection of intros in a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2273,21 +2338,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDetectIntros } from "@lukehagar/plexjs/funcs/libraryDetectIntros.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2334,18 +2400,20 @@ Create a marker for this user on the metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2369,20 +2437,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryCreateMarker } from "@lukehagar/plexjs/funcs/libraryCreateMarker.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2431,18 +2501,20 @@ Match a metadata item to a guid ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2463,20 +2535,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryMatchItem } from "@lukehagar/plexjs/funcs/libraryMatchItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2522,19 +2596,20 @@ Get the list of metadata matches for a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2556,21 +2631,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryListMatches } from "@lukehagar/plexjs/funcs/libraryListMatches.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2617,18 +2693,20 @@ Merge a metadata item with other items ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2649,20 +2727,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryMergeItems } from "@lukehagar/plexjs/funcs/libraryMergeItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2708,18 +2788,20 @@ Get the nearest tracks, sonically, to the provided track ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2740,20 +2822,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryListSonicallySimilar } from "@lukehagar/plexjs/funcs/libraryListSonicallySimilar.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2799,18 +2883,20 @@ Set the preferences on a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2831,20 +2917,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { librarySetItemPreferences } from "@lukehagar/plexjs/funcs/librarySetItemPreferences.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2890,19 +2978,20 @@ Refresh a metadata item from the agent ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2924,21 +3013,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryRefreshItemsMetadata } from "@lukehagar/plexjs/funcs/libraryRefreshItemsMetadata.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -2985,18 +3075,20 @@ Get a hub of related items to a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3017,20 +3109,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetRelatedItems } from "@lukehagar/plexjs/funcs/libraryGetRelatedItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3076,18 +3170,20 @@ Get a list of similar items to a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3108,20 +3204,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryListSimilar } from "@lukehagar/plexjs/funcs/libraryListSimilar.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3167,18 +3265,20 @@ Split a metadata item into multiple items ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3199,20 +3299,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { librarySplitItem } from "@lukehagar/plexjs/funcs/librarySplitItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3258,19 +3360,20 @@ Add a subtitle to a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3293,21 +3396,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryAddSubtitles } from "@lukehagar/plexjs/funcs/libraryAddSubtitles.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3355,18 +3459,20 @@ Get a tree of metadata items, such as the seasons/episodes of a show ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3387,20 +3493,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetItemTree } from "@lukehagar/plexjs/funcs/libraryGetItemTree.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3446,18 +3554,20 @@ Unmatch a metadata item to info fetched from the agent ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3478,20 +3588,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryUnmatch } from "@lukehagar/plexjs/funcs/libraryUnmatch.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3537,18 +3649,20 @@ Get the list of users which have played this item starting with the most ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3569,20 +3683,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryListTopUsers } from "@lukehagar/plexjs/funcs/libraryListTopUsers.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3628,19 +3744,20 @@ Start the detection of voice in a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3663,21 +3780,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDetectVoiceActivity } from "@lukehagar/plexjs/funcs/libraryDetectVoiceActivity.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3725,19 +3843,20 @@ Get augmentation status and potentially wait for completion ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3759,21 +3878,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetAugmentationStatus } from "@lukehagar/plexjs/funcs/libraryGetAugmentationStatus.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3820,19 +3940,20 @@ Set which streams (audio/subtitle) are selected by this user ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3854,21 +3975,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { librarySetStreamSelection } from "@lukehagar/plexjs/funcs/librarySetStreamSelection.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3915,18 +4037,20 @@ Get details for a single actor. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -3947,20 +4071,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetPerson } from "@lukehagar/plexjs/funcs/libraryGetPerson.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4006,18 +4132,20 @@ Get all the media for a single actor. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4038,20 +4166,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryListPersonMedia } from "@lukehagar/plexjs/funcs/libraryListPersonMedia.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4097,19 +4227,20 @@ Delete a library section by id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4131,21 +4262,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteLibrarySection } from "@lukehagar/plexjs/funcs/libraryDeleteLibrarySection.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4192,19 +4324,20 @@ Returns details for the library. This can be thought of as an interstitial endpo ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4226,21 +4359,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetLibraryDetails } from "@lukehagar/plexjs/funcs/libraryGetLibraryDetails.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4287,18 +4421,20 @@ Edit a library section by id setting parameters ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4325,20 +4461,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryEditSection } from "@lukehagar/plexjs/funcs/libraryEditSection.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4434,19 +4572,20 @@ This endpoint takes an large possible set of values. Here are some examples. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4468,21 +4607,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryUpdateItems } from "@lukehagar/plexjs/funcs/libraryUpdateItems.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4529,18 +4669,20 @@ Start analysis of all items in a section. If BIF generation is enabled, this wi ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4561,20 +4703,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryStartAnalysis } from "@lukehagar/plexjs/funcs/libraryStartAnalysis.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4621,18 +4765,20 @@ Returns a set of items from the filtered items whose {field} starts with {field} ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4653,20 +4799,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryAutocomplete } from "@lukehagar/plexjs/funcs/libraryAutocomplete.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4712,18 +4860,20 @@ Get all collections in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4744,20 +4894,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetCollections } from "@lukehagar/plexjs/funcs/libraryGetCollections.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4804,18 +4956,20 @@ Fields which are not common will be expressed in the `mixedFields` field ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4836,20 +4990,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetCommon } from "@lukehagar/plexjs/funcs/libraryGetCommon.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4895,18 +5051,20 @@ Empty trash in the section, permanently deleting media/metadata for missing medi ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4927,20 +5085,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryEmptyTrash } from "@lukehagar/plexjs/funcs/libraryEmptyTrash.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -4986,18 +5146,20 @@ Get common filters on a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5018,20 +5180,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetSectionFilters } from "@lukehagar/plexjs/funcs/libraryGetSectionFilters.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5077,18 +5241,20 @@ Get list of first characters in this section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5109,20 +5275,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetFirstCharacters } from "@lukehagar/plexjs/funcs/libraryGetFirstCharacters.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5168,18 +5336,20 @@ Delete all the indexes in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5200,20 +5370,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteIndexes } from "@lukehagar/plexjs/funcs/libraryDeleteIndexes.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5259,18 +5431,20 @@ Delete all the intro markers in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5291,20 +5465,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteIntros } from "@lukehagar/plexjs/funcs/libraryDeleteIntros.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5350,18 +5526,20 @@ Get the prefs for a section by id and potentially overriding the agent ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5382,20 +5560,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetSectionPreferences } from "@lukehagar/plexjs/funcs/libraryGetSectionPreferences.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5441,18 +5621,20 @@ Set the prefs for a section by id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5474,20 +5656,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { librarySetSectionPreferences } from "@lukehagar/plexjs/funcs/librarySetSectionPreferences.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5534,18 +5718,20 @@ Cancel the refresh of a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5566,20 +5752,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryCancelRefresh } from "@lukehagar/plexjs/funcs/libraryCancelRefresh.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5625,19 +5813,20 @@ Start a refresh of this section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5659,21 +5848,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryRefreshSection } from "@lukehagar/plexjs/funcs/libraryRefreshSection.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5720,18 +5910,20 @@ Get the sort mechanisms available in a section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5752,20 +5944,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetAvailableSorts } from "@lukehagar/plexjs/funcs/libraryGetAvailableSorts.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5811,18 +6005,20 @@ The the loudness of a stream in db, one entry per 100ms ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5843,20 +6039,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetStreamLevels } from "@lukehagar/plexjs/funcs/libraryGetStreamLevels.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5902,18 +6100,20 @@ The the loudness of a stream in db, one number per line, one entry per 100ms ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5934,20 +6134,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetStreamLoudness } from "@lukehagar/plexjs/funcs/libraryGetStreamLoudness.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -5993,18 +6195,20 @@ Get a single chapter image for a piece of media ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6026,20 +6230,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetChapterImage } from "@lukehagar/plexjs/funcs/libraryGetChapterImage.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6088,18 +6294,20 @@ Generally only the admin can perform this action. The exception is if the metad ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { SetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6122,20 +6330,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { librarySetItemArtwork } from "@lukehagar/plexjs/funcs/librarySetItemArtwork.js"; import { SetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6184,18 +6394,20 @@ Generally only the admin can perform this action. The exception is if the metad ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { UpdateItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6218,20 +6430,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryUpdateItemArtwork } from "@lukehagar/plexjs/funcs/libraryUpdateItemArtwork.js"; import { UpdateItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6278,18 +6492,20 @@ Delete a marker for this user on the metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6311,20 +6527,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteMarker } from "@lukehagar/plexjs/funcs/libraryDeleteMarker.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6371,18 +6589,20 @@ Edit a marker for this user on the metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6407,20 +6627,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryEditMarker } from "@lukehagar/plexjs/funcs/libraryEditMarker.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6470,19 +6692,20 @@ Delete a single media from a metadata item in the library ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6505,21 +6728,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteMediaItem } from "@lukehagar/plexjs/funcs/libraryDeleteMediaItem.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6568,18 +6792,20 @@ Get BIF index for a part by index type ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { GetPartIndexIndex } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6602,20 +6828,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetPartIndex } from "@lukehagar/plexjs/funcs/libraryGetPartIndex.js"; import { GetPartIndexIndex } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6662,18 +6890,20 @@ Delete a library collection from the PMS ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6695,20 +6925,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteCollection } from "@lukehagar/plexjs/funcs/libraryDeleteCollection.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6755,18 +6987,20 @@ Get a composite image of images in this section ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6788,20 +7022,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetSectionImage } from "@lukehagar/plexjs/funcs/libraryGetSectionImage.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6848,18 +7084,20 @@ Delete a stream. Only applies to downloaded subtitle streams or a sidecar subti ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6881,20 +7119,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryDeleteStream } from "@lukehagar/plexjs/funcs/libraryDeleteStream.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6941,19 +7181,20 @@ Get a stream (such as a sidecar subtitle stream) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -6976,21 +7217,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetStream } from "@lukehagar/plexjs/funcs/libraryGetStream.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7038,18 +7280,20 @@ Set a stream offset in ms. This may not be respected by all clients ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7071,20 +7315,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { librarySetStreamOffset } from "@lukehagar/plexjs/funcs/librarySetStreamOffset.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7132,18 +7378,20 @@ Get the artwork, thumb, element for a metadata item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { GetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7167,20 +7415,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetItemArtwork } from "@lukehagar/plexjs/funcs/libraryGetItemArtwork.js"; import { GetItemArtworkElement } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7231,19 +7481,20 @@ Get a media part for streaming or download. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7267,21 +7518,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetMediaPart } from "@lukehagar/plexjs/funcs/libraryGetMediaPart.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7331,18 +7583,20 @@ Extract an image from the BIF for a part at a particular offset ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { GetImageFromBifIndex } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -7366,20 +7620,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetImageFromBif } from "@lukehagar/plexjs/funcs/libraryGetImageFromBif.js"; import { GetImageFromBifIndex } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/librarycollections/README.md b/docs/sdks/librarycollections/README.md index a6839948..9130389f 100644 --- a/docs/sdks/librarycollections/README.md +++ b/docs/sdks/librarycollections/README.md @@ -20,18 +20,20 @@ Add items to a collection by uri ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -53,20 +55,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryCollectionsAddCollectionItems } from "@lukehagar/plexjs/funcs/libraryCollectionsAddCollectionItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -113,18 +117,20 @@ Delete an item from a collection ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -146,20 +152,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryCollectionsDeleteCollectionItem } from "@lukehagar/plexjs/funcs/libraryCollectionsDeleteCollectionItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -206,18 +214,20 @@ Reorder items in a collection with one item after another ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -239,20 +249,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryCollectionsMoveCollectionItem } from "@lukehagar/plexjs/funcs/libraryCollectionsMoveCollectionItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/libraryplaylists/README.md b/docs/sdks/libraryplaylists/README.md index 7ea2ee55..7a0b7a4c 100644 --- a/docs/sdks/libraryplaylists/README.md +++ b/docs/sdks/libraryplaylists/README.md @@ -30,18 +30,20 @@ Create a new playlist. By default the playlist is blank. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -62,20 +64,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsCreatePlaylist } from "@lukehagar/plexjs/funcs/libraryPlaylistsCreatePlaylist.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -121,19 +125,20 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -155,21 +160,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsUploadPlaylist } from "@lukehagar/plexjs/funcs/libraryPlaylistsUploadPlaylist.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -216,18 +222,20 @@ Deletes a playlist by provided id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -248,20 +256,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsDeletePlaylist } from "@lukehagar/plexjs/funcs/libraryPlaylistsDeletePlaylist.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -307,18 +317,20 @@ Edits a playlist in the same manner as [editing metadata](#tag/Provider/operatio ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -339,20 +351,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsUpdatePlaylist } from "@lukehagar/plexjs/funcs/libraryPlaylistsUpdatePlaylist.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -398,18 +412,20 @@ Get all the generators in a playlist ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -430,20 +446,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsGetPlaylistGenerators } from "@lukehagar/plexjs/funcs/libraryPlaylistsGetPlaylistGenerators.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -489,18 +507,20 @@ Clears a playlist, only works with dumb playlists. Returns the playlist. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -521,20 +541,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsClearPlaylistItems } from "@lukehagar/plexjs/funcs/libraryPlaylistsClearPlaylistItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -580,18 +602,20 @@ Adds a generator to a playlist, same parameters as the POST above. With a dumb p ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -612,20 +636,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsAddPlaylistItems } from "@lukehagar/plexjs/funcs/libraryPlaylistsAddPlaylistItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -671,18 +697,20 @@ Deletes an item from a playlist. Only works with dumb playlists. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -704,20 +732,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsDeletePlaylistItem } from "@lukehagar/plexjs/funcs/libraryPlaylistsDeletePlaylistItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -764,18 +794,20 @@ Get a playlist's generator. Only used for optimized versions ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -797,20 +829,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsGetPlaylistGenerator } from "@lukehagar/plexjs/funcs/libraryPlaylistsGetPlaylistGenerator.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -858,19 +892,20 @@ Modify a playlist generator. Only used for optimizer ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -907,21 +942,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsModifyPlaylistGenerator } from "@lukehagar/plexjs/funcs/libraryPlaylistsModifyPlaylistGenerator.js"; import { ModifyPlaylistGeneratorScope } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -982,18 +1018,20 @@ Get a playlist generator's items ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1015,20 +1053,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsGetPlaylistGeneratorItems } from "@lukehagar/plexjs/funcs/libraryPlaylistsGetPlaylistGeneratorItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1075,18 +1115,20 @@ Moves an item in a playlist. Only works with dumb playlists. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1108,20 +1150,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsMovePlaylistItem } from "@lukehagar/plexjs/funcs/libraryPlaylistsMovePlaylistItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1169,18 +1213,20 @@ Make a generator reprocess (refresh) ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { Action } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -1205,20 +1251,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryPlaylistsRefreshPlaylist } from "@lukehagar/plexjs/funcs/libraryPlaylistsRefreshPlaylist.js"; import { Action } from "@lukehagar/plexjs/sdk/models/operations"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/livetv/README.md b/docs/sdks/livetv/README.md index fcea6f35..e01d9bbc 100644 --- a/docs/sdks/livetv/README.md +++ b/docs/sdks/livetv/README.md @@ -86,18 +86,20 @@ Get a single livetv session and metadata ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -118,20 +120,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { liveTVGetLiveTVSession } from "@lukehagar/plexjs/funcs/liveTVGetLiveTVSession.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -177,18 +181,20 @@ Get a playlist index for playing this session ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -210,20 +216,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { liveTVGetSessionPlaylistIndex } from "@lukehagar/plexjs/funcs/liveTVGetSessionPlaylistIndex.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -270,18 +278,20 @@ Get a single LiveTV session segment ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -304,20 +314,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { liveTVGetSessionSegment } from "@lukehagar/plexjs/funcs/liveTVGetSessionSegment.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index 59a0ed96..67e12fab 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -91,18 +91,20 @@ Note: This endpoint responds to all HTTP verbs **except POST** but PUT is prefer ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -121,20 +123,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { logWriteMessage } from "@lukehagar/plexjs/funcs/logWriteMessage.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -181,18 +185,20 @@ Note: This endpoint responds to all HTTP verbs but POST is preferred ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -211,20 +217,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { logEnablePapertrail } from "@lukehagar/plexjs/funcs/logEnablePapertrail.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/playlist/README.md b/docs/sdks/playlist/README.md index 43623f6a..39feb0f4 100644 --- a/docs/sdks/playlist/README.md +++ b/docs/sdks/playlist/README.md @@ -20,18 +20,20 @@ Gets a list of playlists and playlist folders for a user. General filters are pe ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -50,20 +52,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playlistListPlaylists } from "@lukehagar/plexjs/funcs/playlistListPlaylists.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -108,18 +112,20 @@ Smart playlist details contain the `content` attribute. This is the content URI ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -140,20 +146,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playlistGetPlaylist } from "@lukehagar/plexjs/funcs/playlistGetPlaylist.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -199,18 +207,20 @@ Gets the contents of a playlist. Should be paged by clients via standard mechani ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -231,20 +241,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playlistGetPlaylistItems } from "@lukehagar/plexjs/funcs/playlistGetPlaylistItems.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/playqueue/README.md b/docs/sdks/playqueue/README.md index e5993a5b..998f2cbc 100644 --- a/docs/sdks/playqueue/README.md +++ b/docs/sdks/playqueue/README.md @@ -33,19 +33,20 @@ Note: Either `uri` or `playlistID` must be specified ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { CreatePlayQueueType } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -72,21 +73,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueCreatePlayQueue } from "@lukehagar/plexjs/funcs/playQueueCreatePlayQueue.js"; import { CreatePlayQueueType } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -137,19 +139,20 @@ Retrieves the play queue, centered at current item. This can be treated as a reg ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -173,21 +176,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueGetPlayQueue } from "@lukehagar/plexjs/funcs/playQueueGetPlayQueue.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -236,19 +240,20 @@ Adds an item to a play queue (e.g. party mode). Increments the version of the pl ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -270,21 +275,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueAddToPlayQueue } from "@lukehagar/plexjs/funcs/playQueueAddToPlayQueue.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -331,18 +337,20 @@ Deletes all items in the play queue, and increases the version of the play queue ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -363,20 +371,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueClearPlayQueue } from "@lukehagar/plexjs/funcs/playQueueClearPlayQueue.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -422,18 +432,20 @@ Reset a play queue to the first item being the current item ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -454,20 +466,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueResetPlayQueue } from "@lukehagar/plexjs/funcs/playQueueResetPlayQueue.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -513,18 +527,20 @@ Shuffle a play queue (or reshuffles if already shuffled). The currently selected ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -545,20 +561,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueShuffle } from "@lukehagar/plexjs/funcs/playQueueShuffle.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -604,18 +622,20 @@ Unshuffles a play queue and restores "natural order". Note that this is currentl ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -636,20 +656,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueUnshuffle } from "@lukehagar/plexjs/funcs/playQueueUnshuffle.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -695,18 +717,20 @@ Deletes an item in a play queue. Increments the version of the play queue. Retur ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -728,20 +752,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueDeletePlayQueueItem } from "@lukehagar/plexjs/funcs/playQueueDeletePlayQueueItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -788,18 +814,20 @@ Moves an item in a play queue, and increases the version of the play queue. Retu ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -821,20 +849,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playQueueMovePlayQueueItem } from "@lukehagar/plexjs/funcs/playQueueMovePlayQueueItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/preferences/README.md b/docs/sdks/preferences/README.md index f6c73f4f..bc8fa08e 100644 --- a/docs/sdks/preferences/README.md +++ b/docs/sdks/preferences/README.md @@ -84,18 +84,20 @@ Set a set of preferences in query parameters ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -116,20 +118,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { preferencesSetPreferences } from "@lukehagar/plexjs/funcs/preferencesSetPreferences.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -175,18 +179,20 @@ Get a single preference and value ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -205,20 +211,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { preferencesGetPreference } from "@lukehagar/plexjs/funcs/preferencesGetPreference.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/provider/README.md b/docs/sdks/provider/README.md index 82643b9f..b2ecc5b6 100644 --- a/docs/sdks/provider/README.md +++ b/docs/sdks/provider/README.md @@ -85,18 +85,20 @@ This endpoint registers a media provider with the server. Once registered, the m ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -117,20 +119,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { providerAddProvider } from "@lukehagar/plexjs/funcs/providerAddProvider.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -240,18 +244,20 @@ Deletes a media provider with the given id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -272,20 +278,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { providerDeleteMediaProvider } from "@lukehagar/plexjs/funcs/providerDeleteMediaProvider.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/rate/README.md b/docs/sdks/rate/README.md index a5df27a2..6798320d 100644 --- a/docs/sdks/rate/README.md +++ b/docs/sdks/rate/README.md @@ -19,18 +19,20 @@ This API does respond to the GET verb but applications should use PUT ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -53,20 +55,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { rateSetRating } from "@lukehagar/plexjs/funcs/rateSetRating.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 7772b01c..620bbaa5 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -33,18 +33,20 @@ This request is intended to be very fast, and called as the user types. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -66,20 +68,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { searchSearchHubs } from "@lukehagar/plexjs/funcs/searchSearchHubs.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -131,18 +135,20 @@ Results, as well as their containing per-type hubs, contain a `distance` attribu ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -163,20 +169,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { searchVoiceSearchHubs } from "@lukehagar/plexjs/funcs/searchVoiceSearchHubs.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/status/README.md b/docs/sdks/status/README.md index b6ab567b..97e08dfc 100644 --- a/docs/sdks/status/README.md +++ b/docs/sdks/status/README.md @@ -152,18 +152,20 @@ Pagination should be used on this endpoint. Additionally this endpoint supports ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -208,20 +210,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { statusListPlaybackHistory } from "@lukehagar/plexjs/funcs/statusListPlaybackHistory.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -291,18 +295,20 @@ Terminate a playback session kicking off the user ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -324,20 +330,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { statusTerminateSession } from "@lukehagar/plexjs/funcs/statusTerminateSession.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -384,18 +392,20 @@ Delete a single history item by id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -416,20 +426,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { statusDeleteHistory } from "@lukehagar/plexjs/funcs/statusDeleteHistory.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -475,18 +487,20 @@ Get a single history item by id ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -507,20 +521,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { statusGetHistoryItem } from "@lukehagar/plexjs/funcs/statusGetHistoryItem.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/subscriptions/README.md b/docs/sdks/subscriptions/README.md index ffcdb6d9..53d67e5d 100644 --- a/docs/sdks/subscriptions/README.md +++ b/docs/sdks/subscriptions/README.md @@ -28,19 +28,20 @@ Get all subscriptions and potentially the grabs too ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -62,21 +63,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsGetAllSubscriptions } from "@lukehagar/plexjs/funcs/subscriptionsGetAllSubscriptions.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -123,18 +125,20 @@ Create a subscription. The query parameters should be mostly derived from the [t ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -160,20 +164,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsCreateSubscription } from "@lukehagar/plexjs/funcs/subscriptionsCreateSubscription.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -352,18 +358,20 @@ Get the templates for a piece of media which could include fetching one airing, ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -384,20 +392,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsGetTemplate } from "@lukehagar/plexjs/funcs/subscriptionsGetTemplate.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -444,18 +454,20 @@ Note: This cancellation does not persist across a server restart, but neither do ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -476,20 +488,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsCancelGrab } from "@lukehagar/plexjs/funcs/subscriptionsCancelGrab.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -535,18 +549,20 @@ Delete a subscription, cancelling all of its grabs as well ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -567,20 +583,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsDeleteSubscription } from "@lukehagar/plexjs/funcs/subscriptionsDeleteSubscription.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -626,19 +644,20 @@ Get a single subscription and potentially the grabs too ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -661,21 +680,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsGetSubscription } from "@lukehagar/plexjs/funcs/subscriptionsGetSubscription.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -723,18 +743,20 @@ Edit a subscription's preferences ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -756,20 +778,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsEditSubscriptionPreferences } from "@lukehagar/plexjs/funcs/subscriptionsEditSubscriptionPreferences.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -816,18 +840,20 @@ Re-order a subscription to change its priority ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -848,20 +874,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { subscriptionsReorderSubscription } from "@lukehagar/plexjs/funcs/subscriptionsReorderSubscription.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/timeline/README.md b/docs/sdks/timeline/README.md index ce4ab693..abbff8dd 100644 --- a/docs/sdks/timeline/README.md +++ b/docs/sdks/timeline/README.md @@ -21,18 +21,20 @@ This API does respond to the GET verb but applications should use PUT ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -54,20 +56,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { timelineMarkPlayed } from "@lukehagar/plexjs/funcs/timelineMarkPlayed.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -116,19 +120,20 @@ This endpoint is hit during media playback for an item. It must be hit whenever ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { ReportState } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -163,21 +168,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { timelineReport } from "@lukehagar/plexjs/funcs/timelineReport.js"; import { ReportState } from "@lukehagar/plexjs/sdk/models/operations"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -237,18 +243,20 @@ This API does respond to the GET verb but applications should use PUT ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -269,20 +277,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { timelineUnscrobble } from "@lukehagar/plexjs/funcs/timelineUnscrobble.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/transcoder/README.md b/docs/sdks/transcoder/README.md index 677bf1a5..8da9cf4e 100644 --- a/docs/sdks/transcoder/README.md +++ b/docs/sdks/transcoder/README.md @@ -22,19 +22,20 @@ Transcode an image, possibly changing format or size ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -60,21 +61,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { transcoderTranscodeImage } from "@lukehagar/plexjs/funcs/transcoderTranscodeImage.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -126,19 +128,20 @@ Make a decision on media playback based on client profile, and requested setting ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { MakeDecisionLocation, MakeDecisionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -187,21 +190,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { transcoderMakeDecision } from "@lukehagar/plexjs/funcs/transcoderMakeDecision.js"; import { MakeDecisionLocation, MakeDecisionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -274,19 +278,20 @@ Manually trigger a transcoder fallback ex: HEVC to h.264 or hw to sw ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -307,21 +312,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { transcoderTriggerFallback } from "@lukehagar/plexjs/funcs/transcoderTriggerFallback.js"; -import { TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -368,19 +374,20 @@ Only transcode subtitle streams. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { TranscodeSubtitlesLocation, TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -429,21 +436,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { transcoderTranscodeSubtitles } from "@lukehagar/plexjs/funcs/transcoderTranscodeSubtitles.js"; import { TranscodeSubtitlesLocation, TranscodeSubtitlesProtocol } from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -517,19 +525,20 @@ Starts the transcoder and returns the corresponding streaming resource document. ```typescript import { PlexAPI } from "@lukehagar/plexjs"; import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -579,21 +588,22 @@ The standalone function version of this method: import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { transcoderStartTranscodeSession } from "@lukehagar/plexjs/funcs/transcoderStartTranscodeSession.js"; import { Extension, StartTranscodeSessionLocation, StartTranscodeSessionProtocol } from "@lukehagar/plexjs/sdk/models/operations"; -import { AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, AdvancedSubtitles, BoolInt, TranscodeType } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/ultrablur/README.md b/docs/sdks/ultrablur/README.md index 2af409f4..b89f061b 100644 --- a/docs/sdks/ultrablur/README.md +++ b/docs/sdks/ultrablur/README.md @@ -19,18 +19,20 @@ Retrieves the four colors extracted from an image for clients to use to generate ```typescript import { PlexAPI } from "@lukehagar/plexjs"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -51,20 +53,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { ultraBlurGetColors } from "@lukehagar/plexjs/funcs/ultraBlurGetColors.js"; +import { Accepts } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -110,19 +114,20 @@ Retrieves a server-side generated UltraBlur image based on the provided color in ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -149,21 +154,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { ultraBlurGetImage } from "@lukehagar/plexjs/funcs/ultraBlurGetImage.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index cc506870..8c56d2db 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -22,19 +22,20 @@ Apply any downloaded updates. Note that the two parameters `tonight` and `skip` ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -56,21 +57,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { updaterApplyUpdates } from "@lukehagar/plexjs/funcs/updaterApplyUpdates.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -117,19 +119,20 @@ Perform an update check and potentially download ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { @@ -150,21 +153,22 @@ The standalone function version of this method: ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { updaterCheckUpdates } from "@lukehagar/plexjs/funcs/updaterCheckUpdates.js"; -import { BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; +import { Accepts, BoolInt } from "@lukehagar/plexjs/sdk/models/shared"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. const plexAPI = new PlexAPICore({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", }); async function run() { diff --git a/examples/generalGetServerInfo.example.ts b/examples/generalGetServerInfo.example.ts deleted file mode 100644 index ebea8139..00000000 --- a/examples/generalGetServerInfo.example.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import dotenv from "dotenv"; -dotenv.config(); -/** - * Example usage of the @lukehagar/plexjs SDK - * - * To run this example from the examples directory: - * npm run build && npx tsx generalGetServerInfo.example.ts - */ - -import { PlexAPI } from "@lukehagar/plexjs"; - -const plexAPI = new PlexAPI({ - xPlexClientIdentifier: "abc123", - xPlexProduct: "Plex for Roku", - xPlexVersion: "2.4.1", - xPlexPlatform: "Roku", - xPlexPlatformVersion: "4.3 build 1057", - xPlexDevice: "Roku 3", - xPlexModel: "4200X", - xPlexDeviceVendor: "Roku", - xPlexDeviceName: "Living Room TV", - xPlexMarketplace: "googlePlay", -}); - -async function main() { - const result = await plexAPI.general.getServerInfo({}); - - console.log(result); -} - -main().catch(console.error); diff --git a/examples/package-lock.json b/examples/package-lock.json index 60331b77..cf2aff6c 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@lukehagar/plexjs", - "version": "0.41.0", + "version": "0.42.0", "dependencies": { "zod": "^3.20.0" }, diff --git a/examples/transcoderStartTranscodeSession.example.ts b/examples/transcoderStartTranscodeSession.example.ts new file mode 100644 index 00000000..e35a6af6 --- /dev/null +++ b/examples/transcoderStartTranscodeSession.example.ts @@ -0,0 +1,78 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import dotenv from "dotenv"; +dotenv.config(); +/** + * Example usage of the @lukehagar/plexjs SDK + * + * To run this example from the examples directory: + * npm run build && npx tsx transcoderStartTranscodeSession.example.ts + */ + +import { PlexAPI } from "@lukehagar/plexjs"; +import { + Extension, + StartTranscodeSessionLocation, + StartTranscodeSessionProtocol, +} from "@lukehagar/plexjs/sdk/models/operations"; +import { + Accepts, + AdvancedSubtitles, + BoolInt, + TranscodeType, +} from "@lukehagar/plexjs/sdk/models/shared"; + +const plexAPI = new PlexAPI({ + accepts: Accepts.ApplicationXml, + clientIdentifier: "abc123", + product: "Plex for Roku", + version: "2.4.1", + platform: "Roku", + platformVersion: "4.3 build 1057", + device: "Roku 3", + model: "4200X", + deviceVendor: "Roku", + deviceName: "Living Room TV", + marketplace: "googlePlay", +}); + +async function main() { + const result = await plexAPI.transcoder.startTranscodeSession({ + transcodeType: TranscodeType.Music, + extension: Extension.Mpd, + advancedSubtitles: AdvancedSubtitles.Burn, + audioBoost: 50, + audioChannelCount: 5, + autoAdjustQuality: BoolInt.One, + autoAdjustSubtitle: BoolInt.One, + directPlay: BoolInt.One, + directStream: BoolInt.One, + directStreamAudio: BoolInt.One, + disableResolutionRotation: BoolInt.One, + hasMDE: BoolInt.One, + location: StartTranscodeSessionLocation.Wan, + mediaBufferSize: 102400, + mediaIndex: 0, + musicBitrate: 5000, + offset: 90.5, + partIndex: 0, + path: "/library/metadata/151671", + peakBitrate: 12000, + photoResolution: "1080x1080", + protocol: StartTranscodeSessionProtocol.Dash, + secondsPerSegment: 5, + subtitleSize: 50, + videoBitrate: 12000, + videoQuality: 50, + videoResolution: "1080x1080", + xPlexClientProfileExtra: + "add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.frameRate&value=60&replace=true)+append-transcode-target-codec(type=videoProfile&context=streaming&videoCodec=h264%2Chevc&audioCodec=aac&protocol=dash)", + xPlexClientProfileName: "generic", + }); + + console.log(result); +} + +main().catch(console.error); diff --git a/jsr.json b/jsr.json index 760da4fa..1d309714 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@lukehagar/plexjs", - "version": "0.41.0", + "version": "0.42.0", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index f9dbd82c..41c7da93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lukehagar/plexjs", - "version": "0.41.0", + "version": "0.42.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lukehagar/plexjs", - "version": "0.41.0", + "version": "0.42.0", "dependencies": { "zod": "^3.20.0" }, diff --git a/package.json b/package.json index 85e68948..722df39b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lukehagar/plexjs", - "version": "0.41.0", + "version": "0.42.0", "author": "LukeHagar", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/activitiesCancelActivity.ts b/src/funcs/activitiesCancelActivity.ts index 35743d9e..04a52acf 100644 --- a/src/funcs/activitiesCancelActivity.ts +++ b/src/funcs/activitiesCancelActivity.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/activitiesListActivities.ts b/src/funcs/activitiesListActivities.ts index 5da8b7f6..fcd17b3b 100644 --- a/src/funcs/activitiesListActivities.ts +++ b/src/funcs/activitiesListActivities.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/butlerGetTasks.ts b/src/funcs/butlerGetTasks.ts index 3baa0caa..786fde0b 100644 --- a/src/funcs/butlerGetTasks.ts +++ b/src/funcs/butlerGetTasks.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/butlerStartTask.ts b/src/funcs/butlerStartTask.ts index 64e4d0ba..8cbf47dd 100644 --- a/src/funcs/butlerStartTask.ts +++ b/src/funcs/butlerStartTask.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/butlerStartTasks.ts b/src/funcs/butlerStartTasks.ts index 91921d3d..5e2fe290 100644 --- a/src/funcs/butlerStartTasks.ts +++ b/src/funcs/butlerStartTasks.ts @@ -80,8 +80,8 @@ async function $do( Accept: "*/*", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -92,7 +92,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/butlerStopTask.ts b/src/funcs/butlerStopTask.ts index 95a070c5..885b7396 100644 --- a/src/funcs/butlerStopTask.ts +++ b/src/funcs/butlerStopTask.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/butlerStopTasks.ts b/src/funcs/butlerStopTasks.ts index 7fe8de3d..548d5902 100644 --- a/src/funcs/butlerStopTasks.ts +++ b/src/funcs/butlerStopTasks.ts @@ -75,8 +75,8 @@ async function $do( Accept: "*/*", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/collectionsCreateCollection.ts b/src/funcs/collectionsCreateCollection.ts index 32d4153a..fd3155e4 100644 --- a/src/funcs/collectionsCreateCollection.ts +++ b/src/funcs/collectionsCreateCollection.ts @@ -99,60 +99,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -163,7 +166,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetAlbums.ts b/src/funcs/contentGetAlbums.ts index 15d07e1c..ed2602a4 100644 --- a/src/funcs/contentGetAlbums.ts +++ b/src/funcs/contentGetAlbums.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetAllLeaves.ts b/src/funcs/contentGetAllLeaves.ts index 4fdb251c..60a7cadf 100644 --- a/src/funcs/contentGetAllLeaves.ts +++ b/src/funcs/contentGetAllLeaves.ts @@ -100,60 +100,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -164,7 +167,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetArts.ts b/src/funcs/contentGetArts.ts index 61009591..1b4fb2eb 100644 --- a/src/funcs/contentGetArts.ts +++ b/src/funcs/contentGetArts.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetCategories.ts b/src/funcs/contentGetCategories.ts index e2f99152..6309a3fd 100644 --- a/src/funcs/contentGetCategories.ts +++ b/src/funcs/contentGetCategories.ts @@ -100,60 +100,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -164,7 +167,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetCluster.ts b/src/funcs/contentGetCluster.ts index 39adc3cb..1f7e0d1a 100644 --- a/src/funcs/contentGetCluster.ts +++ b/src/funcs/contentGetCluster.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetCollectionImage.ts b/src/funcs/contentGetCollectionImage.ts index d933c583..efa1ec68 100644 --- a/src/funcs/contentGetCollectionImage.ts +++ b/src/funcs/contentGetCollectionImage.ts @@ -108,60 +108,63 @@ async function $do( Accept: "image/jpeg", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetCollectionItems.ts b/src/funcs/contentGetCollectionItems.ts index f1b31667..fbdc5e96 100644 --- a/src/funcs/contentGetCollectionItems.ts +++ b/src/funcs/contentGetCollectionItems.ts @@ -100,60 +100,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -164,7 +167,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetFolders.ts b/src/funcs/contentGetFolders.ts index 0ed1f59d..50a1be29 100644 --- a/src/funcs/contentGetFolders.ts +++ b/src/funcs/contentGetFolders.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetMetadataItem.ts b/src/funcs/contentGetMetadataItem.ts index f2aa835d..fcae223f 100644 --- a/src/funcs/contentGetMetadataItem.ts +++ b/src/funcs/contentGetMetadataItem.ts @@ -109,60 +109,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -173,7 +176,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetSonicPath.ts b/src/funcs/contentGetSonicPath.ts index d36fd403..57d645d0 100644 --- a/src/funcs/contentGetSonicPath.ts +++ b/src/funcs/contentGetSonicPath.ts @@ -107,60 +107,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -171,7 +174,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentGetSonicallySimilar.ts b/src/funcs/contentGetSonicallySimilar.ts index e25a78af..eaccae55 100644 --- a/src/funcs/contentGetSonicallySimilar.ts +++ b/src/funcs/contentGetSonicallySimilar.ts @@ -110,60 +110,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -174,7 +177,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentListContent.ts b/src/funcs/contentListContent.ts index 7992e32d..0cb93093 100644 --- a/src/funcs/contentListContent.ts +++ b/src/funcs/contentListContent.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/contentListMoments.ts b/src/funcs/contentListMoments.ts index 199853ae..229f160e 100644 --- a/src/funcs/contentListMoments.ts +++ b/src/funcs/contentListMoments.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesAddDevice.ts b/src/funcs/devicesAddDevice.ts index 806cf52a..ea1b6fd0 100644 --- a/src/funcs/devicesAddDevice.ts +++ b/src/funcs/devicesAddDevice.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesDiscoverDevices.ts b/src/funcs/devicesDiscoverDevices.ts index e50eab10..794034ae 100644 --- a/src/funcs/devicesDiscoverDevices.ts +++ b/src/funcs/devicesDiscoverDevices.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesGetAvailableGrabbers.ts b/src/funcs/devicesGetAvailableGrabbers.ts index a025696e..a66bde63 100644 --- a/src/funcs/devicesGetAvailableGrabbers.ts +++ b/src/funcs/devicesGetAvailableGrabbers.ts @@ -96,60 +96,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesGetDeviceDetails.ts b/src/funcs/devicesGetDeviceDetails.ts index f3bf9c19..e23bd931 100644 --- a/src/funcs/devicesGetDeviceDetails.ts +++ b/src/funcs/devicesGetDeviceDetails.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesGetDevicesChannels.ts b/src/funcs/devicesGetDevicesChannels.ts index 766907cd..451d3820 100644 --- a/src/funcs/devicesGetDevicesChannels.ts +++ b/src/funcs/devicesGetDevicesChannels.ts @@ -100,60 +100,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -164,7 +167,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesGetThumb.ts b/src/funcs/devicesGetThumb.ts index f34212f6..72878fe6 100644 --- a/src/funcs/devicesGetThumb.ts +++ b/src/funcs/devicesGetThumb.ts @@ -90,7 +90,7 @@ async function $do( explode: false, charEncoding: "percent", }), - version: encodeSimple("version", payload.version, { + version: encodeSimple("version", payload.versionPathParameter, { explode: false, charEncoding: "percent", }), @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesListDevices.ts b/src/funcs/devicesListDevices.ts index 7548648b..da7682e9 100644 --- a/src/funcs/devicesListDevices.ts +++ b/src/funcs/devicesListDevices.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesModifyDevice.ts b/src/funcs/devicesModifyDevice.ts index fda8fa3a..e3090496 100644 --- a/src/funcs/devicesModifyDevice.ts +++ b/src/funcs/devicesModifyDevice.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesRemoveDevice.ts b/src/funcs/devicesRemoveDevice.ts index b306296d..b68e0743 100644 --- a/src/funcs/devicesRemoveDevice.ts +++ b/src/funcs/devicesRemoveDevice.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesScan.ts b/src/funcs/devicesScan.ts index ffe9582c..d09d8d65 100644 --- a/src/funcs/devicesScan.ts +++ b/src/funcs/devicesScan.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesSetChannelmap.ts b/src/funcs/devicesSetChannelmap.ts index e677aba5..71931025 100644 --- a/src/funcs/devicesSetChannelmap.ts +++ b/src/funcs/devicesSetChannelmap.ts @@ -115,60 +115,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -179,7 +182,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesSetDevicePreferences.ts b/src/funcs/devicesSetDevicePreferences.ts index 340d1da4..88b904dc 100644 --- a/src/funcs/devicesSetDevicePreferences.ts +++ b/src/funcs/devicesSetDevicePreferences.ts @@ -105,60 +105,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/devicesStopScan.ts b/src/funcs/devicesStopScan.ts index bd01ca13..9f783b55 100644 --- a/src/funcs/devicesStopScan.ts +++ b/src/funcs/devicesStopScan.ts @@ -100,60 +100,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -164,7 +167,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueAddDownloadQueueItems.ts b/src/funcs/downloadQueueAddDownloadQueueItems.ts index 62e8c307..07941596 100644 --- a/src/funcs/downloadQueueAddDownloadQueueItems.ts +++ b/src/funcs/downloadQueueAddDownloadQueueItems.ts @@ -135,60 +135,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -199,7 +202,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueCreateDownloadQueue.ts b/src/funcs/downloadQueueCreateDownloadQueue.ts index 21170e13..64ecff48 100644 --- a/src/funcs/downloadQueueCreateDownloadQueue.ts +++ b/src/funcs/downloadQueueCreateDownloadQueue.ts @@ -77,8 +77,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -89,7 +89,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueGetDownloadQueue.ts b/src/funcs/downloadQueueGetDownloadQueue.ts index 4c9491ce..2c347754 100644 --- a/src/funcs/downloadQueueGetDownloadQueue.ts +++ b/src/funcs/downloadQueueGetDownloadQueue.ts @@ -100,60 +100,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -164,7 +167,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueGetDownloadQueueItems.ts b/src/funcs/downloadQueueGetDownloadQueueItems.ts index 00f94a07..3c3e08a6 100644 --- a/src/funcs/downloadQueueGetDownloadQueueItems.ts +++ b/src/funcs/downloadQueueGetDownloadQueueItems.ts @@ -107,60 +107,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -171,7 +174,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueGetDownloadQueueMedia.ts b/src/funcs/downloadQueueGetDownloadQueueMedia.ts index e2a18eac..c4356d67 100644 --- a/src/funcs/downloadQueueGetDownloadQueueMedia.ts +++ b/src/funcs/downloadQueueGetDownloadQueueMedia.ts @@ -107,60 +107,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -171,7 +174,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueGetItemDecision.ts b/src/funcs/downloadQueueGetItemDecision.ts index 5de5dcac..fabdad72 100644 --- a/src/funcs/downloadQueueGetItemDecision.ts +++ b/src/funcs/downloadQueueGetItemDecision.ts @@ -106,60 +106,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -170,7 +173,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueListDownloadQueueItems.ts b/src/funcs/downloadQueueListDownloadQueueItems.ts index 2e1c8e0a..e1821d9b 100644 --- a/src/funcs/downloadQueueListDownloadQueueItems.ts +++ b/src/funcs/downloadQueueListDownloadQueueItems.ts @@ -101,60 +101,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -165,7 +168,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueRemoveDownloadQueueItems.ts b/src/funcs/downloadQueueRemoveDownloadQueueItems.ts index d8326532..1ea870d9 100644 --- a/src/funcs/downloadQueueRemoveDownloadQueueItems.ts +++ b/src/funcs/downloadQueueRemoveDownloadQueueItems.ts @@ -105,60 +105,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts b/src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts index 29440414..c12dcdfa 100644 --- a/src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts +++ b/src/funcs/downloadQueueRestartProcessingDownloadQueueItems.ts @@ -108,60 +108,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsAddDeviceToDVR.ts b/src/funcs/dvRsAddDeviceToDVR.ts index 82c47ff2..c6f33b47 100644 --- a/src/funcs/dvRsAddDeviceToDVR.ts +++ b/src/funcs/dvRsAddDeviceToDVR.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsAddLineup.ts b/src/funcs/dvRsAddLineup.ts index 23227192..f0aec27b 100644 --- a/src/funcs/dvRsAddLineup.ts +++ b/src/funcs/dvRsAddLineup.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsCreateDVR.ts b/src/funcs/dvRsCreateDVR.ts index a83644b7..52040487 100644 --- a/src/funcs/dvRsCreateDVR.ts +++ b/src/funcs/dvRsCreateDVR.ts @@ -88,7 +88,7 @@ async function $do( const path = pathToFunc("/livetv/dvrs")(); const query = encodeFormQuery({ - "device": payload.device, + "device": payload.deviceQueryParameter, "language": payload.language, "lineup": payload.lineup, }); @@ -97,60 +97,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -161,7 +164,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsDeleteDVR.ts b/src/funcs/dvRsDeleteDVR.ts index c0b4069d..63ad4896 100644 --- a/src/funcs/dvRsDeleteDVR.ts +++ b/src/funcs/dvRsDeleteDVR.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsDeleteLineup.ts b/src/funcs/dvRsDeleteLineup.ts index 7e176bde..75054b80 100644 --- a/src/funcs/dvRsDeleteLineup.ts +++ b/src/funcs/dvRsDeleteLineup.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsGetDVR.ts b/src/funcs/dvRsGetDVR.ts index 5ff36b47..f6cdc573 100644 --- a/src/funcs/dvRsGetDVR.ts +++ b/src/funcs/dvRsGetDVR.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsListDVRs.ts b/src/funcs/dvRsListDVRs.ts index e73f881b..0c387e01 100644 --- a/src/funcs/dvRsListDVRs.ts +++ b/src/funcs/dvRsListDVRs.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsReloadGuide.ts b/src/funcs/dvRsReloadGuide.ts index 9c99cc24..4c728aad 100644 --- a/src/funcs/dvRsReloadGuide.ts +++ b/src/funcs/dvRsReloadGuide.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsRemoveDeviceFromDVR.ts b/src/funcs/dvRsRemoveDeviceFromDVR.ts index c4b6d869..8b97ecf1 100644 --- a/src/funcs/dvRsRemoveDeviceFromDVR.ts +++ b/src/funcs/dvRsRemoveDeviceFromDVR.ts @@ -105,60 +105,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsSetDVRPreferences.ts b/src/funcs/dvRsSetDVRPreferences.ts index 0277be74..b24b88d6 100644 --- a/src/funcs/dvRsSetDVRPreferences.ts +++ b/src/funcs/dvRsSetDVRPreferences.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsStopDVRReload.ts b/src/funcs/dvRsStopDVRReload.ts index 340421c5..6d6a06aa 100644 --- a/src/funcs/dvRsStopDVRReload.ts +++ b/src/funcs/dvRsStopDVRReload.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/dvRsTuneChannel.ts b/src/funcs/dvRsTuneChannel.ts index 5c507070..30646de0 100644 --- a/src/funcs/dvRsTuneChannel.ts +++ b/src/funcs/dvRsTuneChannel.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgComputeChannelMap.ts b/src/funcs/epgComputeChannelMap.ts index 74de2056..a46548e5 100644 --- a/src/funcs/epgComputeChannelMap.ts +++ b/src/funcs/epgComputeChannelMap.ts @@ -88,7 +88,7 @@ async function $do( const path = pathToFunc("/livetv/epg/channelmap")(); const query = encodeFormQuery({ - "device": payload.device, + "device": payload.deviceQueryParameter, "lineup": payload.lineup, }); @@ -96,60 +96,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgGetAllLanguages.ts b/src/funcs/epgGetAllLanguages.ts index 33a9d228..217337e9 100644 --- a/src/funcs/epgGetAllLanguages.ts +++ b/src/funcs/epgGetAllLanguages.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgGetChannels.ts b/src/funcs/epgGetChannels.ts index dfff596c..1f737a1c 100644 --- a/src/funcs/epgGetChannels.ts +++ b/src/funcs/epgGetChannels.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgGetCountries.ts b/src/funcs/epgGetCountries.ts index e503893f..ad64c6aa 100644 --- a/src/funcs/epgGetCountries.ts +++ b/src/funcs/epgGetCountries.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgGetCountriesLineups.ts b/src/funcs/epgGetCountriesLineups.ts index d6bf3ab2..e1e57b79 100644 --- a/src/funcs/epgGetCountriesLineups.ts +++ b/src/funcs/epgGetCountriesLineups.ts @@ -109,60 +109,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -173,7 +176,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgGetCountryRegions.ts b/src/funcs/epgGetCountryRegions.ts index 0dd289d2..729878a4 100644 --- a/src/funcs/epgGetCountryRegions.ts +++ b/src/funcs/epgGetCountryRegions.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgGetLineup.ts b/src/funcs/epgGetLineup.ts index fdc8404d..e3d79c60 100644 --- a/src/funcs/epgGetLineup.ts +++ b/src/funcs/epgGetLineup.ts @@ -88,7 +88,7 @@ async function $do( const path = pathToFunc("/livetv/epg/lineup")(); const query = encodeFormQuery({ - "device": payload.device, + "device": payload.deviceQueryParameter, "lineupGroup": payload.lineupGroup, }); @@ -96,60 +96,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgGetLineupChannels.ts b/src/funcs/epgGetLineupChannels.ts index 63f8f03c..9a95a433 100644 --- a/src/funcs/epgGetLineupChannels.ts +++ b/src/funcs/epgGetLineupChannels.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/epgListLineups.ts b/src/funcs/epgListLineups.ts index d0822881..f48c646d 100644 --- a/src/funcs/epgListLineups.ts +++ b/src/funcs/epgListLineups.ts @@ -108,60 +108,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/eventsConnectWebSocket.ts b/src/funcs/eventsConnectWebSocket.ts index 933a2ce5..0366a1fd 100644 --- a/src/funcs/eventsConnectWebSocket.ts +++ b/src/funcs/eventsConnectWebSocket.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/octet-stream", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/eventsGetNotifications.ts b/src/funcs/eventsGetNotifications.ts index 8f6738af..ecfa3d0b 100644 --- a/src/funcs/eventsGetNotifications.ts +++ b/src/funcs/eventsGetNotifications.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/octet-stream", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/generalGetIdentity.ts b/src/funcs/generalGetIdentity.ts index 2750cba6..04679427 100644 --- a/src/funcs/generalGetIdentity.ts +++ b/src/funcs/generalGetIdentity.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/generalGetServerInfo.ts b/src/funcs/generalGetServerInfo.ts index 48a6d8fc..ef26a4d1 100644 --- a/src/funcs/generalGetServerInfo.ts +++ b/src/funcs/generalGetServerInfo.ts @@ -91,60 +91,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -155,7 +158,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/generalGetSourceConnectionInformation.ts b/src/funcs/generalGetSourceConnectionInformation.ts index b0873f91..13a69de7 100644 --- a/src/funcs/generalGetSourceConnectionInformation.ts +++ b/src/funcs/generalGetSourceConnectionInformation.ts @@ -99,60 +99,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -163,7 +166,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/generalGetTransientToken.ts b/src/funcs/generalGetTransientToken.ts index e5034d32..78f90b12 100644 --- a/src/funcs/generalGetTransientToken.ts +++ b/src/funcs/generalGetTransientToken.ts @@ -97,60 +97,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -161,7 +164,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsCreateCustomHub.ts b/src/funcs/hubsCreateCustomHub.ts index 696057b8..71788193 100644 --- a/src/funcs/hubsCreateCustomHub.ts +++ b/src/funcs/hubsCreateCustomHub.ts @@ -105,60 +105,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsDeleteCustomHub.ts b/src/funcs/hubsDeleteCustomHub.ts index f708dba5..60acd54c 100644 --- a/src/funcs/hubsDeleteCustomHub.ts +++ b/src/funcs/hubsDeleteCustomHub.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsGetAllHubs.ts b/src/funcs/hubsGetAllHubs.ts index d46fc063..c62cc34f 100644 --- a/src/funcs/hubsGetAllHubs.ts +++ b/src/funcs/hubsGetAllHubs.ts @@ -97,60 +97,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -161,7 +164,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsGetContinueWatching.ts b/src/funcs/hubsGetContinueWatching.ts index bcd08847..64c303c0 100644 --- a/src/funcs/hubsGetContinueWatching.ts +++ b/src/funcs/hubsGetContinueWatching.ts @@ -96,60 +96,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsGetHubItems.ts b/src/funcs/hubsGetHubItems.ts index 2a3de508..9b1a418f 100644 --- a/src/funcs/hubsGetHubItems.ts +++ b/src/funcs/hubsGetHubItems.ts @@ -96,60 +96,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsGetMetadataHubs.ts b/src/funcs/hubsGetMetadataHubs.ts index 74ed3418..c86249a4 100644 --- a/src/funcs/hubsGetMetadataHubs.ts +++ b/src/funcs/hubsGetMetadataHubs.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsGetPostplayHubs.ts b/src/funcs/hubsGetPostplayHubs.ts index 7ff6a942..030a30e3 100644 --- a/src/funcs/hubsGetPostplayHubs.ts +++ b/src/funcs/hubsGetPostplayHubs.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsGetPromotedHubs.ts b/src/funcs/hubsGetPromotedHubs.ts index 09844446..6cc36795 100644 --- a/src/funcs/hubsGetPromotedHubs.ts +++ b/src/funcs/hubsGetPromotedHubs.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsGetRelatedHubs.ts b/src/funcs/hubsGetRelatedHubs.ts index 3972e52d..6a639353 100644 --- a/src/funcs/hubsGetRelatedHubs.ts +++ b/src/funcs/hubsGetRelatedHubs.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsGetSectionHubs.ts b/src/funcs/hubsGetSectionHubs.ts index 5bb903eb..f0f0f95f 100644 --- a/src/funcs/hubsGetSectionHubs.ts +++ b/src/funcs/hubsGetSectionHubs.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsListHubs.ts b/src/funcs/hubsListHubs.ts index a6e5526a..3bb66cfc 100644 --- a/src/funcs/hubsListHubs.ts +++ b/src/funcs/hubsListHubs.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsMoveHub.ts b/src/funcs/hubsMoveHub.ts index 17a49c4b..f10589b0 100644 --- a/src/funcs/hubsMoveHub.ts +++ b/src/funcs/hubsMoveHub.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsResetSectionDefaults.ts b/src/funcs/hubsResetSectionDefaults.ts index c1d8360e..d2e74d75 100644 --- a/src/funcs/hubsResetSectionDefaults.ts +++ b/src/funcs/hubsResetSectionDefaults.ts @@ -99,60 +99,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -163,7 +166,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/hubsUpdateHubVisibility.ts b/src/funcs/hubsUpdateHubVisibility.ts index 58e084ac..d35934cd 100644 --- a/src/funcs/hubsUpdateHubVisibility.ts +++ b/src/funcs/hubsUpdateHubVisibility.ts @@ -111,60 +111,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -175,7 +178,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryAddExtras.ts b/src/funcs/libraryAddExtras.ts index ad093a83..8ffcee72 100644 --- a/src/funcs/libraryAddExtras.ts +++ b/src/funcs/libraryAddExtras.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryAddSection.ts b/src/funcs/libraryAddSection.ts index 099b7a75..554acdf1 100644 --- a/src/funcs/libraryAddSection.ts +++ b/src/funcs/libraryAddSection.ts @@ -113,60 +113,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -177,7 +180,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryAddSubtitles.ts b/src/funcs/libraryAddSubtitles.ts index 926a40d5..75d9ef63 100644 --- a/src/funcs/libraryAddSubtitles.ts +++ b/src/funcs/libraryAddSubtitles.ts @@ -108,60 +108,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryAnalyzeMetadata.ts b/src/funcs/libraryAnalyzeMetadata.ts index dc8bee07..5ae2b908 100644 --- a/src/funcs/libraryAnalyzeMetadata.ts +++ b/src/funcs/libraryAnalyzeMetadata.ts @@ -103,60 +103,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryAutocomplete.ts b/src/funcs/libraryAutocomplete.ts index 314556ba..03fd7e46 100644 --- a/src/funcs/libraryAutocomplete.ts +++ b/src/funcs/libraryAutocomplete.ts @@ -107,60 +107,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -171,7 +174,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryCancelRefresh.ts b/src/funcs/libraryCancelRefresh.ts index ec87690d..ad4f1807 100644 --- a/src/funcs/libraryCancelRefresh.ts +++ b/src/funcs/libraryCancelRefresh.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryCleanBundles.ts b/src/funcs/libraryCleanBundles.ts index 35dd2c95..82002cd8 100644 --- a/src/funcs/libraryCleanBundles.ts +++ b/src/funcs/libraryCleanBundles.ts @@ -75,8 +75,8 @@ async function $do( Accept: "*/*", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryCollectionsAddCollectionItems.ts b/src/funcs/libraryCollectionsAddCollectionItems.ts index 39818836..b4bc57f4 100644 --- a/src/funcs/libraryCollectionsAddCollectionItems.ts +++ b/src/funcs/libraryCollectionsAddCollectionItems.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryCollectionsDeleteCollectionItem.ts b/src/funcs/libraryCollectionsDeleteCollectionItem.ts index 84fa588b..78a8d4b2 100644 --- a/src/funcs/libraryCollectionsDeleteCollectionItem.ts +++ b/src/funcs/libraryCollectionsDeleteCollectionItem.ts @@ -105,60 +105,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryCollectionsMoveCollectionItem.ts b/src/funcs/libraryCollectionsMoveCollectionItem.ts index 690eef0c..234cd853 100644 --- a/src/funcs/libraryCollectionsMoveCollectionItem.ts +++ b/src/funcs/libraryCollectionsMoveCollectionItem.ts @@ -108,60 +108,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryCreateMarker.ts b/src/funcs/libraryCreateMarker.ts index 04fc1c33..751b3ba7 100644 --- a/src/funcs/libraryCreateMarker.ts +++ b/src/funcs/libraryCreateMarker.ts @@ -114,60 +114,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -178,7 +181,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteCaches.ts b/src/funcs/libraryDeleteCaches.ts index 5ec23832..1a752a46 100644 --- a/src/funcs/libraryDeleteCaches.ts +++ b/src/funcs/libraryDeleteCaches.ts @@ -75,8 +75,8 @@ async function $do( Accept: "*/*", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteCollection.ts b/src/funcs/libraryDeleteCollection.ts index b6c5e5d3..7faf8d3f 100644 --- a/src/funcs/libraryDeleteCollection.ts +++ b/src/funcs/libraryDeleteCollection.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteIndexes.ts b/src/funcs/libraryDeleteIndexes.ts index fa013bc6..c369b4a6 100644 --- a/src/funcs/libraryDeleteIndexes.ts +++ b/src/funcs/libraryDeleteIndexes.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteIntros.ts b/src/funcs/libraryDeleteIntros.ts index 32140da8..2f0b9e9f 100644 --- a/src/funcs/libraryDeleteIntros.ts +++ b/src/funcs/libraryDeleteIntros.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteLibrarySection.ts b/src/funcs/libraryDeleteLibrarySection.ts index a0876352..52e47cc2 100644 --- a/src/funcs/libraryDeleteLibrarySection.ts +++ b/src/funcs/libraryDeleteLibrarySection.ts @@ -103,60 +103,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteMarker.ts b/src/funcs/libraryDeleteMarker.ts index c3e1aca5..7d35d1fc 100644 --- a/src/funcs/libraryDeleteMarker.ts +++ b/src/funcs/libraryDeleteMarker.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteMediaItem.ts b/src/funcs/libraryDeleteMediaItem.ts index 347cf685..81c83e11 100644 --- a/src/funcs/libraryDeleteMediaItem.ts +++ b/src/funcs/libraryDeleteMediaItem.ts @@ -108,60 +108,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteMetadataItem.ts b/src/funcs/libraryDeleteMetadataItem.ts index 4169a944..8b9aa6ef 100644 --- a/src/funcs/libraryDeleteMetadataItem.ts +++ b/src/funcs/libraryDeleteMetadataItem.ts @@ -102,60 +102,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDeleteStream.ts b/src/funcs/libraryDeleteStream.ts index e9bd3ec6..bc8a29ee 100644 --- a/src/funcs/libraryDeleteStream.ts +++ b/src/funcs/libraryDeleteStream.ts @@ -102,60 +102,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDetectAds.ts b/src/funcs/libraryDetectAds.ts index e3a2aa9e..01491e04 100644 --- a/src/funcs/libraryDetectAds.ts +++ b/src/funcs/libraryDetectAds.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDetectCredits.ts b/src/funcs/libraryDetectCredits.ts index d9a9e1e7..9a5cc73f 100644 --- a/src/funcs/libraryDetectCredits.ts +++ b/src/funcs/libraryDetectCredits.ts @@ -103,60 +103,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDetectIntros.ts b/src/funcs/libraryDetectIntros.ts index d22b81e5..896a1a8a 100644 --- a/src/funcs/libraryDetectIntros.ts +++ b/src/funcs/libraryDetectIntros.ts @@ -103,60 +103,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryDetectVoiceActivity.ts b/src/funcs/libraryDetectVoiceActivity.ts index ea037e93..9f76a6a5 100644 --- a/src/funcs/libraryDetectVoiceActivity.ts +++ b/src/funcs/libraryDetectVoiceActivity.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryEditMarker.ts b/src/funcs/libraryEditMarker.ts index 3c313678..4b83de3e 100644 --- a/src/funcs/libraryEditMarker.ts +++ b/src/funcs/libraryEditMarker.ts @@ -120,60 +120,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -184,7 +187,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryEditMetadataItem.ts b/src/funcs/libraryEditMetadataItem.ts index ccbeb0b7..f9c1264c 100644 --- a/src/funcs/libraryEditMetadataItem.ts +++ b/src/funcs/libraryEditMetadataItem.ts @@ -102,60 +102,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryEditSection.ts b/src/funcs/libraryEditSection.ts index 62e05564..88da71c5 100644 --- a/src/funcs/libraryEditSection.ts +++ b/src/funcs/libraryEditSection.ts @@ -117,60 +117,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -181,7 +184,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryEmptyTrash.ts b/src/funcs/libraryEmptyTrash.ts index 3e342ece..08dbbb2e 100644 --- a/src/funcs/libraryEmptyTrash.ts +++ b/src/funcs/libraryEmptyTrash.ts @@ -100,60 +100,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -164,7 +167,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGenerateThumbs.ts b/src/funcs/libraryGenerateThumbs.ts index a389d0f5..e2e11638 100644 --- a/src/funcs/libraryGenerateThumbs.ts +++ b/src/funcs/libraryGenerateThumbs.ts @@ -102,60 +102,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetAllItemLeaves.ts b/src/funcs/libraryGetAllItemLeaves.ts index 2a92da7e..2ff4ab37 100644 --- a/src/funcs/libraryGetAllItemLeaves.ts +++ b/src/funcs/libraryGetAllItemLeaves.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetAugmentationStatus.ts b/src/funcs/libraryGetAugmentationStatus.ts index a14e27e5..9aec45fa 100644 --- a/src/funcs/libraryGetAugmentationStatus.ts +++ b/src/funcs/libraryGetAugmentationStatus.ts @@ -105,60 +105,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetAvailableSorts.ts b/src/funcs/libraryGetAvailableSorts.ts index 7f592cd9..60fd03b4 100644 --- a/src/funcs/libraryGetAvailableSorts.ts +++ b/src/funcs/libraryGetAvailableSorts.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetChapterImage.ts b/src/funcs/libraryGetChapterImage.ts index 653bc8e8..8180776d 100644 --- a/src/funcs/libraryGetChapterImage.ts +++ b/src/funcs/libraryGetChapterImage.ts @@ -104,60 +104,63 @@ async function $do( Accept: "image/jpeg", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetCollections.ts b/src/funcs/libraryGetCollections.ts index f3db937e..07266fa1 100644 --- a/src/funcs/libraryGetCollections.ts +++ b/src/funcs/libraryGetCollections.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetCommon.ts b/src/funcs/libraryGetCommon.ts index f02f8606..a3fce9d2 100644 --- a/src/funcs/libraryGetCommon.ts +++ b/src/funcs/libraryGetCommon.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetExtras.ts b/src/funcs/libraryGetExtras.ts index cccfe2be..12d7e311 100644 --- a/src/funcs/libraryGetExtras.ts +++ b/src/funcs/libraryGetExtras.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetFile.ts b/src/funcs/libraryGetFile.ts index f3f73ae2..d4fb6d95 100644 --- a/src/funcs/libraryGetFile.ts +++ b/src/funcs/libraryGetFile.ts @@ -107,60 +107,63 @@ async function $do( Accept: options?.acceptHeaderOverride || "audio/mpeg3;q=1, image/jpeg;q=0", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -171,7 +174,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetFirstCharacters.ts b/src/funcs/libraryGetFirstCharacters.ts index d4380185..49d82991 100644 --- a/src/funcs/libraryGetFirstCharacters.ts +++ b/src/funcs/libraryGetFirstCharacters.ts @@ -106,60 +106,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -170,7 +173,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetImageFromBif.ts b/src/funcs/libraryGetImageFromBif.ts index e2472c40..89fb9be3 100644 --- a/src/funcs/libraryGetImageFromBif.ts +++ b/src/funcs/libraryGetImageFromBif.ts @@ -108,60 +108,63 @@ async function $do( Accept: "image/jpeg", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetItemArtwork.ts b/src/funcs/libraryGetItemArtwork.ts index b375afe7..d9f4231a 100644 --- a/src/funcs/libraryGetItemArtwork.ts +++ b/src/funcs/libraryGetItemArtwork.ts @@ -117,60 +117,63 @@ async function $do( Accept: options?.acceptHeaderOverride || "audio/mpeg3;q=1, image/jpeg;q=0", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -181,7 +184,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetItemTree.ts b/src/funcs/libraryGetItemTree.ts index 2541c028..9deaccbb 100644 --- a/src/funcs/libraryGetItemTree.ts +++ b/src/funcs/libraryGetItemTree.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetLibraryDetails.ts b/src/funcs/libraryGetLibraryDetails.ts index 3d80833b..88d234c3 100644 --- a/src/funcs/libraryGetLibraryDetails.ts +++ b/src/funcs/libraryGetLibraryDetails.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetLibraryItems.ts b/src/funcs/libraryGetLibraryItems.ts index 07c10fd3..6420da06 100644 --- a/src/funcs/libraryGetLibraryItems.ts +++ b/src/funcs/libraryGetLibraryItems.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetLibraryMatches.ts b/src/funcs/libraryGetLibraryMatches.ts index d7c3d304..9ffa408f 100644 --- a/src/funcs/libraryGetLibraryMatches.ts +++ b/src/funcs/libraryGetLibraryMatches.ts @@ -112,60 +112,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -176,7 +179,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetMediaPart.ts b/src/funcs/libraryGetMediaPart.ts index 9d957b52..84c65368 100644 --- a/src/funcs/libraryGetMediaPart.ts +++ b/src/funcs/libraryGetMediaPart.ts @@ -114,60 +114,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -178,7 +181,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetPartIndex.ts b/src/funcs/libraryGetPartIndex.ts index 9988741c..d87a1559 100644 --- a/src/funcs/libraryGetPartIndex.ts +++ b/src/funcs/libraryGetPartIndex.ts @@ -108,60 +108,63 @@ async function $do( Accept: "application/octet-stream", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetPerson.ts b/src/funcs/libraryGetPerson.ts index 9383d2b4..5eda7c56 100644 --- a/src/funcs/libraryGetPerson.ts +++ b/src/funcs/libraryGetPerson.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetRandomArtwork.ts b/src/funcs/libraryGetRandomArtwork.ts index 8d765c61..a5096174 100644 --- a/src/funcs/libraryGetRandomArtwork.ts +++ b/src/funcs/libraryGetRandomArtwork.ts @@ -97,60 +97,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -161,7 +164,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetRelatedItems.ts b/src/funcs/libraryGetRelatedItems.ts index f72d8797..1b7d44f1 100644 --- a/src/funcs/libraryGetRelatedItems.ts +++ b/src/funcs/libraryGetRelatedItems.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetSectionFilters.ts b/src/funcs/libraryGetSectionFilters.ts index 41a1c7c8..a2c4afb9 100644 --- a/src/funcs/libraryGetSectionFilters.ts +++ b/src/funcs/libraryGetSectionFilters.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetSectionImage.ts b/src/funcs/libraryGetSectionImage.ts index bcc990fb..67a847f6 100644 --- a/src/funcs/libraryGetSectionImage.ts +++ b/src/funcs/libraryGetSectionImage.ts @@ -109,60 +109,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -173,7 +176,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetSectionPreferences.ts b/src/funcs/libraryGetSectionPreferences.ts index 5dfef147..b76ad2b0 100644 --- a/src/funcs/libraryGetSectionPreferences.ts +++ b/src/funcs/libraryGetSectionPreferences.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetSections.ts b/src/funcs/libraryGetSections.ts index 2ab2678e..d995c12e 100644 --- a/src/funcs/libraryGetSections.ts +++ b/src/funcs/libraryGetSections.ts @@ -76,8 +76,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -88,7 +88,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetSectionsPrefs.ts b/src/funcs/libraryGetSectionsPrefs.ts index ad0cfcba..bb811ae5 100644 --- a/src/funcs/libraryGetSectionsPrefs.ts +++ b/src/funcs/libraryGetSectionsPrefs.ts @@ -96,60 +96,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetStream.ts b/src/funcs/libraryGetStream.ts index 52a98910..0cf72976 100644 --- a/src/funcs/libraryGetStream.ts +++ b/src/funcs/libraryGetStream.ts @@ -108,60 +108,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetStreamLevels.ts b/src/funcs/libraryGetStreamLevels.ts index 0b08fdb5..eafe34e1 100644 --- a/src/funcs/libraryGetStreamLevels.ts +++ b/src/funcs/libraryGetStreamLevels.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetStreamLoudness.ts b/src/funcs/libraryGetStreamLoudness.ts index f513a0ac..d8d528d0 100644 --- a/src/funcs/libraryGetStreamLoudness.ts +++ b/src/funcs/libraryGetStreamLoudness.ts @@ -102,60 +102,63 @@ async function $do( Accept: "text/plain", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryGetTags.ts b/src/funcs/libraryGetTags.ts index 7819914f..885a8c5b 100644 --- a/src/funcs/libraryGetTags.ts +++ b/src/funcs/libraryGetTags.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryIngestTransientItem.ts b/src/funcs/libraryIngestTransientItem.ts index 84c6523d..4c15aacb 100644 --- a/src/funcs/libraryIngestTransientItem.ts +++ b/src/funcs/libraryIngestTransientItem.ts @@ -100,60 +100,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -164,7 +167,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryListMatches.ts b/src/funcs/libraryListMatches.ts index 5bac38bd..7498074f 100644 --- a/src/funcs/libraryListMatches.ts +++ b/src/funcs/libraryListMatches.ts @@ -107,60 +107,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -171,7 +174,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryListPersonMedia.ts b/src/funcs/libraryListPersonMedia.ts index 57c0d486..30a8e3c0 100644 --- a/src/funcs/libraryListPersonMedia.ts +++ b/src/funcs/libraryListPersonMedia.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryListSimilar.ts b/src/funcs/libraryListSimilar.ts index 4ce824a5..48a7361d 100644 --- a/src/funcs/libraryListSimilar.ts +++ b/src/funcs/libraryListSimilar.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryListSonicallySimilar.ts b/src/funcs/libraryListSonicallySimilar.ts index 24537bba..ec18aca2 100644 --- a/src/funcs/libraryListSonicallySimilar.ts +++ b/src/funcs/libraryListSonicallySimilar.ts @@ -106,60 +106,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -170,7 +173,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryListTopUsers.ts b/src/funcs/libraryListTopUsers.ts index a8ef3b4e..4f4f5d0f 100644 --- a/src/funcs/libraryListTopUsers.ts +++ b/src/funcs/libraryListTopUsers.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryMatchItem.ts b/src/funcs/libraryMatchItem.ts index 2aa0d9ee..02f51453 100644 --- a/src/funcs/libraryMatchItem.ts +++ b/src/funcs/libraryMatchItem.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryMergeItems.ts b/src/funcs/libraryMergeItems.ts index d0232ed1..d5731b0d 100644 --- a/src/funcs/libraryMergeItems.ts +++ b/src/funcs/libraryMergeItems.ts @@ -102,60 +102,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryOptimizeDatabase.ts b/src/funcs/libraryOptimizeDatabase.ts index 33d4ea53..0b1ab05e 100644 --- a/src/funcs/libraryOptimizeDatabase.ts +++ b/src/funcs/libraryOptimizeDatabase.ts @@ -95,60 +95,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsAddPlaylistItems.ts b/src/funcs/libraryPlaylistsAddPlaylistItems.ts index 39d2b60e..af8cec62 100644 --- a/src/funcs/libraryPlaylistsAddPlaylistItems.ts +++ b/src/funcs/libraryPlaylistsAddPlaylistItems.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsClearPlaylistItems.ts b/src/funcs/libraryPlaylistsClearPlaylistItems.ts index f3adc71f..944ca34c 100644 --- a/src/funcs/libraryPlaylistsClearPlaylistItems.ts +++ b/src/funcs/libraryPlaylistsClearPlaylistItems.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsCreatePlaylist.ts b/src/funcs/libraryPlaylistsCreatePlaylist.ts index 0968a780..ba4f3de0 100644 --- a/src/funcs/libraryPlaylistsCreatePlaylist.ts +++ b/src/funcs/libraryPlaylistsCreatePlaylist.ts @@ -96,60 +96,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsDeletePlaylist.ts b/src/funcs/libraryPlaylistsDeletePlaylist.ts index f8f18636..246ae449 100644 --- a/src/funcs/libraryPlaylistsDeletePlaylist.ts +++ b/src/funcs/libraryPlaylistsDeletePlaylist.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsDeletePlaylistItem.ts b/src/funcs/libraryPlaylistsDeletePlaylistItem.ts index d4b19a38..735f4a39 100644 --- a/src/funcs/libraryPlaylistsDeletePlaylistItem.ts +++ b/src/funcs/libraryPlaylistsDeletePlaylistItem.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsGetPlaylistGenerator.ts b/src/funcs/libraryPlaylistsGetPlaylistGenerator.ts index 20278228..c841ecf5 100644 --- a/src/funcs/libraryPlaylistsGetPlaylistGenerator.ts +++ b/src/funcs/libraryPlaylistsGetPlaylistGenerator.ts @@ -105,60 +105,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts b/src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts index 51c5f6ef..6895bf51 100644 --- a/src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts +++ b/src/funcs/libraryPlaylistsGetPlaylistGeneratorItems.ts @@ -105,60 +105,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsGetPlaylistGenerators.ts b/src/funcs/libraryPlaylistsGetPlaylistGenerators.ts index 37a8b5e2..2ff109e9 100644 --- a/src/funcs/libraryPlaylistsGetPlaylistGenerators.ts +++ b/src/funcs/libraryPlaylistsGetPlaylistGenerators.ts @@ -99,60 +99,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -163,7 +166,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts b/src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts index 120258e6..b480993b 100644 --- a/src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts +++ b/src/funcs/libraryPlaylistsModifyPlaylistGenerator.ts @@ -109,60 +109,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -173,7 +176,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsMovePlaylistItem.ts b/src/funcs/libraryPlaylistsMovePlaylistItem.ts index 1f1942c0..c4f241b7 100644 --- a/src/funcs/libraryPlaylistsMovePlaylistItem.ts +++ b/src/funcs/libraryPlaylistsMovePlaylistItem.ts @@ -108,60 +108,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsRefreshPlaylist.ts b/src/funcs/libraryPlaylistsRefreshPlaylist.ts index e3c15312..3a134f02 100644 --- a/src/funcs/libraryPlaylistsRefreshPlaylist.ts +++ b/src/funcs/libraryPlaylistsRefreshPlaylist.ts @@ -112,60 +112,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -176,7 +179,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsUpdatePlaylist.ts b/src/funcs/libraryPlaylistsUpdatePlaylist.ts index 22db1180..04526463 100644 --- a/src/funcs/libraryPlaylistsUpdatePlaylist.ts +++ b/src/funcs/libraryPlaylistsUpdatePlaylist.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryPlaylistsUploadPlaylist.ts b/src/funcs/libraryPlaylistsUploadPlaylist.ts index a5edffe8..209814bb 100644 --- a/src/funcs/libraryPlaylistsUploadPlaylist.ts +++ b/src/funcs/libraryPlaylistsUploadPlaylist.ts @@ -96,60 +96,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryRefreshItemsMetadata.ts b/src/funcs/libraryRefreshItemsMetadata.ts index fde018da..9f1d14d8 100644 --- a/src/funcs/libraryRefreshItemsMetadata.ts +++ b/src/funcs/libraryRefreshItemsMetadata.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryRefreshSection.ts b/src/funcs/libraryRefreshSection.ts index 1db890a7..d180cb79 100644 --- a/src/funcs/libraryRefreshSection.ts +++ b/src/funcs/libraryRefreshSection.ts @@ -103,60 +103,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryRefreshSectionsMetadata.ts b/src/funcs/libraryRefreshSectionsMetadata.ts index c1f26909..25956e99 100644 --- a/src/funcs/libraryRefreshSectionsMetadata.ts +++ b/src/funcs/libraryRefreshSectionsMetadata.ts @@ -96,60 +96,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/librarySetItemArtwork.ts b/src/funcs/librarySetItemArtwork.ts index b90409d2..8e7d98b5 100644 --- a/src/funcs/librarySetItemArtwork.ts +++ b/src/funcs/librarySetItemArtwork.ts @@ -107,60 +107,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -171,7 +174,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/librarySetItemPreferences.ts b/src/funcs/librarySetItemPreferences.ts index 9f9988b9..9620b17e 100644 --- a/src/funcs/librarySetItemPreferences.ts +++ b/src/funcs/librarySetItemPreferences.ts @@ -102,60 +102,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/librarySetSectionPreferences.ts b/src/funcs/librarySetSectionPreferences.ts index 73e007aa..5aa05a71 100644 --- a/src/funcs/librarySetSectionPreferences.ts +++ b/src/funcs/librarySetSectionPreferences.ts @@ -103,60 +103,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/librarySetStreamOffset.ts b/src/funcs/librarySetStreamOffset.ts index a7ac5571..da0f7d84 100644 --- a/src/funcs/librarySetStreamOffset.ts +++ b/src/funcs/librarySetStreamOffset.ts @@ -106,60 +106,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -170,7 +173,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/librarySetStreamSelection.ts b/src/funcs/librarySetStreamSelection.ts index c1affb72..7750daba 100644 --- a/src/funcs/librarySetStreamSelection.ts +++ b/src/funcs/librarySetStreamSelection.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/librarySplitItem.ts b/src/funcs/librarySplitItem.ts index 832bfdbd..0e0138b7 100644 --- a/src/funcs/librarySplitItem.ts +++ b/src/funcs/librarySplitItem.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryStartAnalysis.ts b/src/funcs/libraryStartAnalysis.ts index bb56d944..478ddef0 100644 --- a/src/funcs/libraryStartAnalysis.ts +++ b/src/funcs/libraryStartAnalysis.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryStartBifGeneration.ts b/src/funcs/libraryStartBifGeneration.ts index 3ee4eaff..2853e928 100644 --- a/src/funcs/libraryStartBifGeneration.ts +++ b/src/funcs/libraryStartBifGeneration.ts @@ -102,60 +102,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryStopAllRefreshes.ts b/src/funcs/libraryStopAllRefreshes.ts index 3410f0f6..f3e8417b 100644 --- a/src/funcs/libraryStopAllRefreshes.ts +++ b/src/funcs/libraryStopAllRefreshes.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryUnmatch.ts b/src/funcs/libraryUnmatch.ts index 22084595..6b31c2ad 100644 --- a/src/funcs/libraryUnmatch.ts +++ b/src/funcs/libraryUnmatch.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryUpdateItemArtwork.ts b/src/funcs/libraryUpdateItemArtwork.ts index cb699ee4..eb71a683 100644 --- a/src/funcs/libraryUpdateItemArtwork.ts +++ b/src/funcs/libraryUpdateItemArtwork.ts @@ -107,60 +107,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -171,7 +174,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/libraryUpdateItems.ts b/src/funcs/libraryUpdateItems.ts index 5ed37e49..e8ebca8b 100644 --- a/src/funcs/libraryUpdateItems.ts +++ b/src/funcs/libraryUpdateItems.ts @@ -158,60 +158,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -222,7 +225,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/liveTVGetLiveTVSession.ts b/src/funcs/liveTVGetLiveTVSession.ts index 12b13950..5ac56cb6 100644 --- a/src/funcs/liveTVGetLiveTVSession.ts +++ b/src/funcs/liveTVGetLiveTVSession.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/liveTVGetSessionPlaylistIndex.ts b/src/funcs/liveTVGetSessionPlaylistIndex.ts index e9f3469c..62bf988c 100644 --- a/src/funcs/liveTVGetSessionPlaylistIndex.ts +++ b/src/funcs/liveTVGetSessionPlaylistIndex.ts @@ -105,60 +105,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/liveTVGetSessionSegment.ts b/src/funcs/liveTVGetSessionSegment.ts index 41d19a1e..d54e675d 100644 --- a/src/funcs/liveTVGetSessionSegment.ts +++ b/src/funcs/liveTVGetSessionSegment.ts @@ -108,60 +108,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/liveTVGetSessions.ts b/src/funcs/liveTVGetSessions.ts index 14338e26..2c87457d 100644 --- a/src/funcs/liveTVGetSessions.ts +++ b/src/funcs/liveTVGetSessions.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/logEnablePapertrail.ts b/src/funcs/logEnablePapertrail.ts index 28163ea2..4669ab42 100644 --- a/src/funcs/logEnablePapertrail.ts +++ b/src/funcs/logEnablePapertrail.ts @@ -97,60 +97,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -161,7 +164,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/logWriteLog.ts b/src/funcs/logWriteLog.ts index 734b35de..31ea2458 100644 --- a/src/funcs/logWriteLog.ts +++ b/src/funcs/logWriteLog.ts @@ -98,8 +98,8 @@ async function $do( Accept: "*/*", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -110,7 +110,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/logWriteMessage.ts b/src/funcs/logWriteMessage.ts index 1d137721..37f8462b 100644 --- a/src/funcs/logWriteMessage.ts +++ b/src/funcs/logWriteMessage.ts @@ -99,60 +99,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -163,7 +166,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueAddToPlayQueue.ts b/src/funcs/playQueueAddToPlayQueue.ts index e2616f96..c2b86a77 100644 --- a/src/funcs/playQueueAddToPlayQueue.ts +++ b/src/funcs/playQueueAddToPlayQueue.ts @@ -104,60 +104,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueClearPlayQueue.ts b/src/funcs/playQueueClearPlayQueue.ts index de680347..a667692d 100644 --- a/src/funcs/playQueueClearPlayQueue.ts +++ b/src/funcs/playQueueClearPlayQueue.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueCreatePlayQueue.ts b/src/funcs/playQueueCreatePlayQueue.ts index d626f8bb..ab598c41 100644 --- a/src/funcs/playQueueCreatePlayQueue.ts +++ b/src/funcs/playQueueCreatePlayQueue.ts @@ -105,60 +105,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueDeletePlayQueueItem.ts b/src/funcs/playQueueDeletePlayQueueItem.ts index c8ea825b..b1d12a90 100644 --- a/src/funcs/playQueueDeletePlayQueueItem.ts +++ b/src/funcs/playQueueDeletePlayQueueItem.ts @@ -105,60 +105,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueGetPlayQueue.ts b/src/funcs/playQueueGetPlayQueue.ts index 5ce843d2..65c16733 100644 --- a/src/funcs/playQueueGetPlayQueue.ts +++ b/src/funcs/playQueueGetPlayQueue.ts @@ -106,60 +106,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -170,7 +173,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueMovePlayQueueItem.ts b/src/funcs/playQueueMovePlayQueueItem.ts index 39b3390b..fa0f5b70 100644 --- a/src/funcs/playQueueMovePlayQueueItem.ts +++ b/src/funcs/playQueueMovePlayQueueItem.ts @@ -108,60 +108,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -172,7 +175,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueResetPlayQueue.ts b/src/funcs/playQueueResetPlayQueue.ts index dcb9a6e1..e1fe93c6 100644 --- a/src/funcs/playQueueResetPlayQueue.ts +++ b/src/funcs/playQueueResetPlayQueue.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueShuffle.ts b/src/funcs/playQueueShuffle.ts index 58805388..fc4c3580 100644 --- a/src/funcs/playQueueShuffle.ts +++ b/src/funcs/playQueueShuffle.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playQueueUnshuffle.ts b/src/funcs/playQueueUnshuffle.ts index fdc0d833..8451dc99 100644 --- a/src/funcs/playQueueUnshuffle.ts +++ b/src/funcs/playQueueUnshuffle.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playlistGetPlaylist.ts b/src/funcs/playlistGetPlaylist.ts index a11c8033..ba81c77b 100644 --- a/src/funcs/playlistGetPlaylist.ts +++ b/src/funcs/playlistGetPlaylist.ts @@ -99,60 +99,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -163,7 +166,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playlistGetPlaylistItems.ts b/src/funcs/playlistGetPlaylistItems.ts index 54549807..4a37a4f5 100644 --- a/src/funcs/playlistGetPlaylistItems.ts +++ b/src/funcs/playlistGetPlaylistItems.ts @@ -102,60 +102,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -166,7 +169,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/playlistListPlaylists.ts b/src/funcs/playlistListPlaylists.ts index 4f5ac1a5..1d767cba 100644 --- a/src/funcs/playlistListPlaylists.ts +++ b/src/funcs/playlistListPlaylists.ts @@ -96,60 +96,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/preferencesGetAllPreferences.ts b/src/funcs/preferencesGetAllPreferences.ts index f26b7f46..5365e0f6 100644 --- a/src/funcs/preferencesGetAllPreferences.ts +++ b/src/funcs/preferencesGetAllPreferences.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/preferencesGetPreference.ts b/src/funcs/preferencesGetPreference.ts index 26bbbc09..4a83bd8b 100644 --- a/src/funcs/preferencesGetPreference.ts +++ b/src/funcs/preferencesGetPreference.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/preferencesSetPreferences.ts b/src/funcs/preferencesSetPreferences.ts index 275f88fb..b3012beb 100644 --- a/src/funcs/preferencesSetPreferences.ts +++ b/src/funcs/preferencesSetPreferences.ts @@ -95,60 +95,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/providerAddProvider.ts b/src/funcs/providerAddProvider.ts index 4f101bef..821e0461 100644 --- a/src/funcs/providerAddProvider.ts +++ b/src/funcs/providerAddProvider.ts @@ -95,60 +95,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/providerDeleteMediaProvider.ts b/src/funcs/providerDeleteMediaProvider.ts index ad8937e7..197db759 100644 --- a/src/funcs/providerDeleteMediaProvider.ts +++ b/src/funcs/providerDeleteMediaProvider.ts @@ -99,60 +99,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -163,7 +166,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/providerListProviders.ts b/src/funcs/providerListProviders.ts index 143db3c1..16bacbb2 100644 --- a/src/funcs/providerListProviders.ts +++ b/src/funcs/providerListProviders.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/providerRefreshProviders.ts b/src/funcs/providerRefreshProviders.ts index e2587251..11dfc1e2 100644 --- a/src/funcs/providerRefreshProviders.ts +++ b/src/funcs/providerRefreshProviders.ts @@ -75,8 +75,8 @@ async function $do( Accept: "*/*", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/rateSetRating.ts b/src/funcs/rateSetRating.ts index 4e425be6..0c1641ce 100644 --- a/src/funcs/rateSetRating.ts +++ b/src/funcs/rateSetRating.ts @@ -99,60 +99,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -163,7 +166,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/searchSearchHubs.ts b/src/funcs/searchSearchHubs.ts index 9927b001..a6ee4811 100644 --- a/src/funcs/searchSearchHubs.ts +++ b/src/funcs/searchSearchHubs.ts @@ -110,60 +110,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -174,7 +177,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/searchVoiceSearchHubs.ts b/src/funcs/searchVoiceSearchHubs.ts index 603e351f..96b4e5e2 100644 --- a/src/funcs/searchVoiceSearchHubs.ts +++ b/src/funcs/searchVoiceSearchHubs.ts @@ -101,60 +101,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -165,7 +168,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/statusDeleteHistory.ts b/src/funcs/statusDeleteHistory.ts index 5b8644d4..15eccb4b 100644 --- a/src/funcs/statusDeleteHistory.ts +++ b/src/funcs/statusDeleteHistory.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/statusGetBackgroundTasks.ts b/src/funcs/statusGetBackgroundTasks.ts index bcf8c0d8..53e02295 100644 --- a/src/funcs/statusGetBackgroundTasks.ts +++ b/src/funcs/statusGetBackgroundTasks.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/statusGetHistoryItem.ts b/src/funcs/statusGetHistoryItem.ts index e2f3b99c..c2ea63cf 100644 --- a/src/funcs/statusGetHistoryItem.ts +++ b/src/funcs/statusGetHistoryItem.ts @@ -98,60 +98,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/statusListPlaybackHistory.ts b/src/funcs/statusListPlaybackHistory.ts index af25ec09..ebd1264c 100644 --- a/src/funcs/statusListPlaybackHistory.ts +++ b/src/funcs/statusListPlaybackHistory.ts @@ -101,60 +101,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -165,7 +168,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/statusListSessions.ts b/src/funcs/statusListSessions.ts index 12140f6d..37060e83 100644 --- a/src/funcs/statusListSessions.ts +++ b/src/funcs/statusListSessions.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/statusTerminateSession.ts b/src/funcs/statusTerminateSession.ts index 40f70c85..de47a020 100644 --- a/src/funcs/statusTerminateSession.ts +++ b/src/funcs/statusTerminateSession.ts @@ -96,60 +96,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsCancelGrab.ts b/src/funcs/subscriptionsCancelGrab.ts index 73588638..597c862a 100644 --- a/src/funcs/subscriptionsCancelGrab.ts +++ b/src/funcs/subscriptionsCancelGrab.ts @@ -101,60 +101,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -165,7 +168,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsCreateSubscription.ts b/src/funcs/subscriptionsCreateSubscription.ts index bc6dfc27..aef0e86e 100644 --- a/src/funcs/subscriptionsCreateSubscription.ts +++ b/src/funcs/subscriptionsCreateSubscription.ts @@ -109,60 +109,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -173,7 +176,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsDeleteSubscription.ts b/src/funcs/subscriptionsDeleteSubscription.ts index 9e24a978..421c2646 100644 --- a/src/funcs/subscriptionsDeleteSubscription.ts +++ b/src/funcs/subscriptionsDeleteSubscription.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsEditSubscriptionPreferences.ts b/src/funcs/subscriptionsEditSubscriptionPreferences.ts index 29d0b856..4c4e0b22 100644 --- a/src/funcs/subscriptionsEditSubscriptionPreferences.ts +++ b/src/funcs/subscriptionsEditSubscriptionPreferences.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsGetAllSubscriptions.ts b/src/funcs/subscriptionsGetAllSubscriptions.ts index a3d2c38a..d308c7d8 100644 --- a/src/funcs/subscriptionsGetAllSubscriptions.ts +++ b/src/funcs/subscriptionsGetAllSubscriptions.ts @@ -97,60 +97,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -161,7 +164,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsGetScheduledRecordings.ts b/src/funcs/subscriptionsGetScheduledRecordings.ts index 623a5555..252d11f5 100644 --- a/src/funcs/subscriptionsGetScheduledRecordings.ts +++ b/src/funcs/subscriptionsGetScheduledRecordings.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsGetSubscription.ts b/src/funcs/subscriptionsGetSubscription.ts index 2e2b14a7..1e2884c0 100644 --- a/src/funcs/subscriptionsGetSubscription.ts +++ b/src/funcs/subscriptionsGetSubscription.ts @@ -103,60 +103,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -167,7 +170,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsGetTemplate.ts b/src/funcs/subscriptionsGetTemplate.ts index 67d64fba..58aff66e 100644 --- a/src/funcs/subscriptionsGetTemplate.ts +++ b/src/funcs/subscriptionsGetTemplate.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsProcessSubscriptions.ts b/src/funcs/subscriptionsProcessSubscriptions.ts index d7a578c6..97bcd1a9 100644 --- a/src/funcs/subscriptionsProcessSubscriptions.ts +++ b/src/funcs/subscriptionsProcessSubscriptions.ts @@ -75,8 +75,8 @@ async function $do( Accept: "*/*", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/subscriptionsReorderSubscription.ts b/src/funcs/subscriptionsReorderSubscription.ts index 79e198e4..abe71ecd 100644 --- a/src/funcs/subscriptionsReorderSubscription.ts +++ b/src/funcs/subscriptionsReorderSubscription.ts @@ -105,60 +105,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -169,7 +172,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/timelineMarkPlayed.ts b/src/funcs/timelineMarkPlayed.ts index 042860ba..8ad3be7e 100644 --- a/src/funcs/timelineMarkPlayed.ts +++ b/src/funcs/timelineMarkPlayed.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/timelineReport.ts b/src/funcs/timelineReport.ts index 0813551e..4a5edf27 100644 --- a/src/funcs/timelineReport.ts +++ b/src/funcs/timelineReport.ts @@ -108,49 +108,52 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Version": encodeSimple( + "X-Plex-Version", + payload.Version ?? client._options.version, { explode: false, charEncoding: "none" }, ), "X-Plex-Session-Identifier": encodeSimple( @@ -158,15 +161,15 @@ async function $do( payload["X-Plex-Session-Identifier"], { explode: false, charEncoding: "none" }, ), - "X-Plex-Version": encodeSimple( - "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -177,7 +180,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/timelineUnscrobble.ts b/src/funcs/timelineUnscrobble.ts index 0f8b68d9..dd06ecd9 100644 --- a/src/funcs/timelineUnscrobble.ts +++ b/src/funcs/timelineUnscrobble.ts @@ -98,60 +98,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -162,7 +165,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/transcoderMakeDecision.ts b/src/funcs/transcoderMakeDecision.ts index 11c56037..18eae37a 100644 --- a/src/funcs/transcoderMakeDecision.ts +++ b/src/funcs/transcoderMakeDecision.ts @@ -130,8 +130,52 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device": encodeSimple( + "X-Plex-Device", + payload.Device ?? client._options.device, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device-Name": encodeSimple( + "X-Plex-Device-Name", + payload["Device-Name"] ?? client._options.deviceName, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device-Vendor": encodeSimple( + "X-Plex-Device-Vendor", + payload["Device-Vendor"] ?? client._options.deviceVendor, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Marketplace": encodeSimple( + "X-Plex-Marketplace", + payload.Marketplace ?? client._options.marketplace, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Model": encodeSimple( + "X-Plex-Model", + payload.Model ?? client._options.model, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Platform": encodeSimple( + "X-Plex-Platform", + payload.Platform ?? client._options.platform, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Platform-Version": encodeSimple( + "X-Plex-Platform-Version", + payload["Platform-Version"] ?? client._options.platformVersion, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Product": encodeSimple( + "X-Plex-Product", + payload.Product ?? client._options.product, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Version": encodeSimple( + "X-Plex-Version", + payload.Version ?? client._options.version, { explode: false, charEncoding: "none" }, ), "X-Plex-Client-Profile-Extra": encodeSimple( @@ -144,61 +188,20 @@ async function $do( payload["X-Plex-Client-Profile-Name"], { explode: false, charEncoding: "none" }, ), - "X-Plex-Device": encodeSimple( - "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Device-Name": encodeSimple( - "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Device-Vendor": encodeSimple( - "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Marketplace": encodeSimple( - "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Model": encodeSimple( - "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Platform": encodeSimple( - "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Platform-Version": encodeSimple( - "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Product": encodeSimple( - "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, - { explode: false, charEncoding: "none" }, - ), "X-Plex-Session-Identifier": encodeSimple( "X-Plex-Session-Identifier", payload["X-Plex-Session-Identifier"], { explode: false, charEncoding: "none" }, ), - "X-Plex-Version": encodeSimple( - "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -209,7 +212,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/transcoderStartTranscodeSession.ts b/src/funcs/transcoderStartTranscodeSession.ts index 19b9b242..15159c70 100644 --- a/src/funcs/transcoderStartTranscodeSession.ts +++ b/src/funcs/transcoderStartTranscodeSession.ts @@ -135,8 +135,52 @@ async function $do( Accept: "video/x-matroska", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device": encodeSimple( + "X-Plex-Device", + payload.Device ?? client._options.device, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device-Name": encodeSimple( + "X-Plex-Device-Name", + payload["Device-Name"] ?? client._options.deviceName, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device-Vendor": encodeSimple( + "X-Plex-Device-Vendor", + payload["Device-Vendor"] ?? client._options.deviceVendor, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Marketplace": encodeSimple( + "X-Plex-Marketplace", + payload.Marketplace ?? client._options.marketplace, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Model": encodeSimple( + "X-Plex-Model", + payload.Model ?? client._options.model, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Platform": encodeSimple( + "X-Plex-Platform", + payload.Platform ?? client._options.platform, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Platform-Version": encodeSimple( + "X-Plex-Platform-Version", + payload["Platform-Version"] ?? client._options.platformVersion, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Product": encodeSimple( + "X-Plex-Product", + payload.Product ?? client._options.product, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Version": encodeSimple( + "X-Plex-Version", + payload.Version ?? client._options.version, { explode: false, charEncoding: "none" }, ), "X-Plex-Client-Profile-Extra": encodeSimple( @@ -149,61 +193,20 @@ async function $do( payload["X-Plex-Client-Profile-Name"], { explode: false, charEncoding: "none" }, ), - "X-Plex-Device": encodeSimple( - "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Device-Name": encodeSimple( - "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Device-Vendor": encodeSimple( - "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Marketplace": encodeSimple( - "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Model": encodeSimple( - "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Platform": encodeSimple( - "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Platform-Version": encodeSimple( - "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Product": encodeSimple( - "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, - { explode: false, charEncoding: "none" }, - ), "X-Plex-Session-Identifier": encodeSimple( "X-Plex-Session-Identifier", payload["X-Plex-Session-Identifier"], { explode: false, charEncoding: "none" }, ), - "X-Plex-Version": encodeSimple( - "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -214,7 +217,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/transcoderTranscodeImage.ts b/src/funcs/transcoderTranscodeImage.ts index 887ed180..186465f6 100644 --- a/src/funcs/transcoderTranscodeImage.ts +++ b/src/funcs/transcoderTranscodeImage.ts @@ -119,60 +119,63 @@ async function $do( || "image/jpeg;q=1, image/png;q=0.7, image/x-portable-pixmap;q=0", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -183,7 +186,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/transcoderTranscodeSubtitles.ts b/src/funcs/transcoderTranscodeSubtitles.ts index 1ea665e3..f2156a79 100644 --- a/src/funcs/transcoderTranscodeSubtitles.ts +++ b/src/funcs/transcoderTranscodeSubtitles.ts @@ -130,8 +130,52 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device": encodeSimple( + "X-Plex-Device", + payload.Device ?? client._options.device, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device-Name": encodeSimple( + "X-Plex-Device-Name", + payload["Device-Name"] ?? client._options.deviceName, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Device-Vendor": encodeSimple( + "X-Plex-Device-Vendor", + payload["Device-Vendor"] ?? client._options.deviceVendor, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Marketplace": encodeSimple( + "X-Plex-Marketplace", + payload.Marketplace ?? client._options.marketplace, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Model": encodeSimple( + "X-Plex-Model", + payload.Model ?? client._options.model, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Platform": encodeSimple( + "X-Plex-Platform", + payload.Platform ?? client._options.platform, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Platform-Version": encodeSimple( + "X-Plex-Platform-Version", + payload["Platform-Version"] ?? client._options.platformVersion, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Product": encodeSimple( + "X-Plex-Product", + payload.Product ?? client._options.product, + { explode: false, charEncoding: "none" }, + ), + "X-Plex-Version": encodeSimple( + "X-Plex-Version", + payload.Version ?? client._options.version, { explode: false, charEncoding: "none" }, ), "X-Plex-Client-Profile-Extra": encodeSimple( @@ -144,61 +188,20 @@ async function $do( payload["X-Plex-Client-Profile-Name"], { explode: false, charEncoding: "none" }, ), - "X-Plex-Device": encodeSimple( - "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Device-Name": encodeSimple( - "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Device-Vendor": encodeSimple( - "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Marketplace": encodeSimple( - "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Model": encodeSimple( - "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Platform": encodeSimple( - "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Platform-Version": encodeSimple( - "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, - { explode: false, charEncoding: "none" }, - ), - "X-Plex-Product": encodeSimple( - "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, - { explode: false, charEncoding: "none" }, - ), "X-Plex-Session-Identifier": encodeSimple( "X-Plex-Session-Identifier", payload["X-Plex-Session-Identifier"], { explode: false, charEncoding: "none" }, ), - "X-Plex-Version": encodeSimple( - "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -209,7 +212,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/transcoderTriggerFallback.ts b/src/funcs/transcoderTriggerFallback.ts index d468fa12..f503fc52 100644 --- a/src/funcs/transcoderTriggerFallback.ts +++ b/src/funcs/transcoderTriggerFallback.ts @@ -104,60 +104,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -168,7 +171,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/ultraBlurGetColors.ts b/src/funcs/ultraBlurGetColors.ts index b5a0b317..10f58423 100644 --- a/src/funcs/ultraBlurGetColors.ts +++ b/src/funcs/ultraBlurGetColors.ts @@ -95,60 +95,63 @@ async function $do( Accept: "application/json", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/ultraBlurGetImage.ts b/src/funcs/ultraBlurGetImage.ts index 123ee91d..b16db33f 100644 --- a/src/funcs/ultraBlurGetImage.ts +++ b/src/funcs/ultraBlurGetImage.ts @@ -101,60 +101,63 @@ async function $do( Accept: "image/png", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -165,7 +168,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/updaterApplyUpdates.ts b/src/funcs/updaterApplyUpdates.ts index 284cea56..6b40f4ff 100644 --- a/src/funcs/updaterApplyUpdates.ts +++ b/src/funcs/updaterApplyUpdates.ts @@ -96,60 +96,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -160,7 +163,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/updaterCheckUpdates.ts b/src/funcs/updaterCheckUpdates.ts index 759baf94..7e36c0ff 100644 --- a/src/funcs/updaterCheckUpdates.ts +++ b/src/funcs/updaterCheckUpdates.ts @@ -95,60 +95,63 @@ async function $do( Accept: "*/*", "X-Plex-Client-Identifier": encodeSimple( "X-Plex-Client-Identifier", - payload["X-Plex-Client-Identifier"] - ?? client._options.xPlexClientIdentifier, + payload["Client-Identifier"] ?? client._options.clientIdentifier, { explode: false, charEncoding: "none" }, ), "X-Plex-Device": encodeSimple( "X-Plex-Device", - payload["X-Plex-Device"] ?? client._options.xPlexDevice, + payload.Device ?? client._options.device, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Name": encodeSimple( "X-Plex-Device-Name", - payload["X-Plex-Device-Name"] ?? client._options.xPlexDeviceName, + payload["Device-Name"] ?? client._options.deviceName, { explode: false, charEncoding: "none" }, ), "X-Plex-Device-Vendor": encodeSimple( "X-Plex-Device-Vendor", - payload["X-Plex-Device-Vendor"] ?? client._options.xPlexDeviceVendor, + payload["Device-Vendor"] ?? client._options.deviceVendor, { explode: false, charEncoding: "none" }, ), "X-Plex-Marketplace": encodeSimple( "X-Plex-Marketplace", - payload["X-Plex-Marketplace"] ?? client._options.xPlexMarketplace, + payload.Marketplace ?? client._options.marketplace, { explode: false, charEncoding: "none" }, ), "X-Plex-Model": encodeSimple( "X-Plex-Model", - payload["X-Plex-Model"] ?? client._options.xPlexModel, + payload.Model ?? client._options.model, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform": encodeSimple( "X-Plex-Platform", - payload["X-Plex-Platform"] ?? client._options.xPlexPlatform, + payload.Platform ?? client._options.platform, { explode: false, charEncoding: "none" }, ), "X-Plex-Platform-Version": encodeSimple( "X-Plex-Platform-Version", - payload["X-Plex-Platform-Version"] - ?? client._options.xPlexPlatformVersion, + payload["Platform-Version"] ?? client._options.platformVersion, { explode: false, charEncoding: "none" }, ), "X-Plex-Product": encodeSimple( "X-Plex-Product", - payload["X-Plex-Product"] ?? client._options.xPlexProduct, + payload.Product ?? client._options.product, { explode: false, charEncoding: "none" }, ), "X-Plex-Version": encodeSimple( "X-Plex-Version", - payload["X-Plex-Version"] ?? client._options.xPlexVersion, + payload.Version ?? client._options.version, + { explode: false, charEncoding: "none" }, + ), + "accepts": encodeSimple( + "accepts", + payload.accepts ?? client._options.accepts, { explode: false, charEncoding: "none" }, ), })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -159,7 +162,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/funcs/updaterGetUpdatesStatus.ts b/src/funcs/updaterGetUpdatesStatus.ts index 35dbbcc3..a3d91e70 100644 --- a/src/funcs/updaterGetUpdatesStatus.ts +++ b/src/funcs/updaterGetUpdatesStatus.ts @@ -75,8 +75,8 @@ async function $do( Accept: "application/json", })); - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const secConfig = await extractSecurity(client._options.token); + const securityInput = secConfig == null ? {} : { token: secConfig }; const requestSecurity = resolveGlobalSecurity(securityInput); const context = { @@ -87,7 +87,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.apiKey, + securitySource: client._options.token, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, diff --git a/src/lib/config.ts b/src/lib/config.ts index 298936e3..c4d19699 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as shared from "../sdk/models/shared/index.js"; import { HTTPClient } from "./http.js"; import { Logger } from "./logger.js"; import { RetryConfig } from "./retries.js"; @@ -17,57 +18,62 @@ export const ServerList = [ ] as const; export type SDKOptions = { - apiKey?: string | (() => Promise) | undefined; + token?: string | (() => Promise) | undefined; /** - * Allows setting the xPlexClientIdentifier parameter for all supported operations + * Allows setting the accepts parameter for all supported operations */ - xPlexClientIdentifier?: string | undefined; + accepts?: shared.Accepts | undefined; /** - * Allows setting the xPlexProduct parameter for all supported operations + * Allows setting the clientIdentifier parameter for all supported operations */ - xPlexProduct?: string | undefined; + clientIdentifier?: string | undefined; /** - * Allows setting the xPlexVersion parameter for all supported operations + * Allows setting the product parameter for all supported operations */ - xPlexVersion?: string | undefined; + product?: string | undefined; /** - * Allows setting the xPlexPlatform parameter for all supported operations + * Allows setting the version parameter for all supported operations */ - xPlexPlatform?: string | undefined; + version?: string | undefined; /** - * Allows setting the xPlexPlatformVersion parameter for all supported operations + * Allows setting the platform parameter for all supported operations */ - xPlexPlatformVersion?: string | undefined; + platform?: string | undefined; /** - * Allows setting the xPlexDevice parameter for all supported operations + * Allows setting the platformVersion parameter for all supported operations */ - xPlexDevice?: string | undefined; + platformVersion?: string | undefined; /** - * Allows setting the xPlexModel parameter for all supported operations + * Allows setting the device parameter for all supported operations */ - xPlexModel?: string | undefined; + device?: string | undefined; /** - * Allows setting the xPlexDeviceVendor parameter for all supported operations + * Allows setting the model parameter for all supported operations */ - xPlexDeviceVendor?: string | undefined; + model?: string | undefined; /** - * Allows setting the xPlexDeviceName parameter for all supported operations + * Allows setting the deviceVendor parameter for all supported operations */ - xPlexDeviceName?: string | undefined; + deviceVendor?: string | undefined; /** - * Allows setting the xPlexMarketplace parameter for all supported operations + * Allows setting the deviceName parameter for all supported operations */ - xPlexMarketplace?: string | undefined; + deviceName?: string | undefined; + + /** + * Allows setting the marketplace parameter for all supported operations + */ + marketplace?: string | undefined; httpClient?: HTTPClient; /** @@ -150,7 +156,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.1.1", - sdkVersion: "0.41.0", + sdkVersion: "0.42.0", genVersion: "2.723.11", - userAgent: "speakeasy-sdk/typescript 0.41.0 2.723.11 1.1.1 @lukehagar/plexjs", + userAgent: "speakeasy-sdk/typescript 0.42.0 2.723.11 1.1.1 @lukehagar/plexjs", } as const; diff --git a/src/lib/security.ts b/src/lib/security.ts index 35f7e4f8..7838053d 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -246,7 +246,7 @@ export function resolveGlobalSecurity( { fieldName: "X-Plex-Token", type: "apiKey:header", - value: security?.apiKey, + value: security?.token, }, ], ); diff --git a/src/sdk/models/operations/addcollectionitems.ts b/src/sdk/models/operations/addcollectionitems.ts index 9156d921..725296c1 100644 --- a/src/sdk/models/operations/addcollectionitems.ts +++ b/src/sdk/models/operations/addcollectionitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddCollectionItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddCollectionItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The collection id */ @@ -128,43 +136,45 @@ export const AddCollectionItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddCollectionItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -173,28 +183,29 @@ export const AddCollectionItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddCollectionItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -235,45 +246,47 @@ export const AddCollectionItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), collectionId: z.number().int(), uri: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddCollectionItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; collectionId: number; uri: string; }; @@ -284,30 +297,31 @@ export const AddCollectionItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddCollectionItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), collectionId: z.number().int(), uri: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/adddevice.ts b/src/sdk/models/operations/adddevice.ts index 73fc4bd6..0aa44c36 100644 --- a/src/sdk/models/operations/adddevice.ts +++ b/src/sdk/models/operations/adddevice.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddDeviceGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddDeviceRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The URI of the device. */ @@ -124,43 +132,45 @@ export const AddDeviceGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddDeviceGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const AddDeviceGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddDeviceGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const AddDeviceRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), uri: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddDeviceRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; uri?: string | undefined; }; @@ -278,29 +291,30 @@ export const AddDeviceRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddDeviceRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), uri: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/adddevicetodvr.ts b/src/sdk/models/operations/adddevicetodvr.ts index 8ccf49e4..bbde760c 100644 --- a/src/sdk/models/operations/adddevicetodvr.ts +++ b/src/sdk/models/operations/adddevicetodvr.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddDeviceToDVRGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddDeviceToDVRRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -177,43 +185,45 @@ export const AddDeviceToDVRGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddDeviceToDVRGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -222,28 +232,29 @@ export const AddDeviceToDVRGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddDeviceToDVRGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -284,45 +295,47 @@ export const AddDeviceToDVRRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddDeviceToDVRRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; deviceId: number; }; @@ -333,30 +346,31 @@ export const AddDeviceToDVRRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddDeviceToDVRRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/adddownloadqueueitems.ts b/src/sdk/models/operations/adddownloadqueueitems.ts index 6e5dddda..2bb20a78 100644 --- a/src/sdk/models/operations/adddownloadqueueitems.ts +++ b/src/sdk/models/operations/adddownloadqueueitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddDownloadQueueItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddDownloadQueueItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The queue id */ @@ -281,43 +289,45 @@ export const AddDownloadQueueItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddDownloadQueueItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -326,28 +336,29 @@ export const AddDownloadQueueItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddDownloadQueueItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -390,16 +401,17 @@ export const AddDownloadQueueItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), queueId: z.number().int(), keys: z.array(z.string()), advancedSubtitles: shared.AdvancedSubtitles$inboundSchema.optional(), @@ -430,31 +442,32 @@ export const AddDownloadQueueItemsRequest$inboundSchema: z.ZodType< videoResolution: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddDownloadQueueItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; queueId: number; keys: Array; advancedSubtitles?: string | undefined; @@ -491,16 +504,17 @@ export const AddDownloadQueueItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddDownloadQueueItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), queueId: z.number().int(), keys: z.array(z.string()), advancedSubtitles: shared.AdvancedSubtitles$outboundSchema.optional(), @@ -531,16 +545,16 @@ export const AddDownloadQueueItemsRequest$outboundSchema: z.ZodType< videoResolution: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/addextras.ts b/src/sdk/models/operations/addextras.ts index fb4d9f3d..2c83ae15 100644 --- a/src/sdk/models/operations/addextras.ts +++ b/src/sdk/models/operations/addextras.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type AddExtrasGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddExtrasRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * The metadata type of the extra @@ -128,43 +137,45 @@ export const AddExtrasGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddExtrasGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -173,28 +184,29 @@ export const AddExtrasGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddExtrasGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -235,47 +247,49 @@ export const AddExtrasRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), extraType: z.number().int().optional(), url: z.string(), title: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddExtrasRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; extraType?: number | undefined; url: string; @@ -288,32 +302,33 @@ export const AddExtrasRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddExtrasRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), extraType: z.number().int().optional(), url: z.string(), title: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/addlineup.ts b/src/sdk/models/operations/addlineup.ts index 7842b1c9..5d130024 100644 --- a/src/sdk/models/operations/addlineup.ts +++ b/src/sdk/models/operations/addlineup.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddLineupGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddLineupRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -177,43 +185,45 @@ export const AddLineupGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddLineupGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -222,28 +232,29 @@ export const AddLineupGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddLineupGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -284,45 +295,47 @@ export const AddLineupRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), lineup: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddLineupRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; lineup: string; }; @@ -333,30 +346,31 @@ export const AddLineupRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddLineupRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), lineup: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/addplaylistitems.ts b/src/sdk/models/operations/addplaylistitems.ts index d67d9c25..866c8a9e 100644 --- a/src/sdk/models/operations/addplaylistitems.ts +++ b/src/sdk/models/operations/addplaylistitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddPlaylistItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddPlaylistItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -134,43 +142,45 @@ export const AddPlaylistItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddPlaylistItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -179,28 +189,29 @@ export const AddPlaylistItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddPlaylistItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -241,46 +252,48 @@ export const AddPlaylistItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), uri: z.string().optional(), playQueueID: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddPlaylistItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; uri?: string | undefined; playQueueID?: number | undefined; @@ -292,31 +305,32 @@ export const AddPlaylistItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddPlaylistItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), uri: z.string().optional(), playQueueID: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/addprovider.ts b/src/sdk/models/operations/addprovider.ts index 542bbeb9..0a4d423d 100644 --- a/src/sdk/models/operations/addprovider.ts +++ b/src/sdk/models/operations/addprovider.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type AddProviderGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddProviderRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The URL of the media provider to add. */ @@ -119,43 +128,45 @@ export const AddProviderGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddProviderGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const AddProviderGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddProviderGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const AddProviderRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), url: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddProviderRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; url: string; }; @@ -273,29 +287,30 @@ export const AddProviderRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddProviderRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), url: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/addsection.ts b/src/sdk/models/operations/addsection.ts index f3f1811d..7950c739 100644 --- a/src/sdk/models/operations/addsection.ts +++ b/src/sdk/models/operations/addsection.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddSectionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -58,46 +62,50 @@ export type AddSectionGlobals = { export type AddSectionPrefs = {}; export type AddSectionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The name of the new section */ @@ -165,43 +173,45 @@ export const AddSectionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddSectionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -210,28 +220,29 @@ export const AddSectionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddSectionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -318,16 +329,17 @@ export const AddSectionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), name: z.string(), type: z.number().int(), scanner: z.string().optional(), @@ -340,31 +352,32 @@ export const AddSectionRequest$inboundSchema: z.ZodType< importFromiTunes: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddSectionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; name: string; type: number; scanner?: string | undefined; @@ -383,16 +396,17 @@ export const AddSectionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddSectionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), name: z.string(), type: z.number().int(), scanner: z.string().optional(), @@ -405,16 +419,16 @@ export const AddSectionRequest$outboundSchema: z.ZodType< importFromiTunes: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/addsubtitles.ts b/src/sdk/models/operations/addsubtitles.ts index fa67dcb9..59a67fcc 100644 --- a/src/sdk/models/operations/addsubtitles.ts +++ b/src/sdk/models/operations/addsubtitles.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddSubtitlesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddSubtitlesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; title?: string | undefined; language?: string | undefined; @@ -127,43 +135,45 @@ export const AddSubtitlesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddSubtitlesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +182,29 @@ export const AddSubtitlesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddSubtitlesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,16 +245,17 @@ export const AddSubtitlesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), title: z.string().optional(), language: z.string().optional(), @@ -254,31 +266,32 @@ export const AddSubtitlesRequest$inboundSchema: z.ZodType< hearingImpaired: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddSubtitlesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; title?: string | undefined; language?: string | undefined; @@ -295,16 +308,17 @@ export const AddSubtitlesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddSubtitlesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), title: z.string().optional(), language: z.string().optional(), @@ -315,16 +329,16 @@ export const AddSubtitlesRequest$outboundSchema: z.ZodType< hearingImpaired: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/addtoplayqueue.ts b/src/sdk/models/operations/addtoplayqueue.ts index 5e391208..72c70ee7 100644 --- a/src/sdk/models/operations/addtoplayqueue.ts +++ b/src/sdk/models/operations/addtoplayqueue.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AddToPlayQueueGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AddToPlayQueueRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the play queue. */ @@ -138,43 +146,45 @@ export const AddToPlayQueueGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddToPlayQueueGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -183,28 +193,29 @@ export const AddToPlayQueueGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AddToPlayQueueGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -245,47 +256,49 @@ export const AddToPlayQueueRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playQueueId: z.number().int(), uri: z.string().optional(), playlistID: z.string().optional(), next: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AddToPlayQueueRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playQueueId: number; uri?: string | undefined; playlistID?: string | undefined; @@ -298,32 +311,33 @@ export const AddToPlayQueueRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AddToPlayQueueRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playQueueId: z.number().int(), uri: z.string().optional(), playlistID: z.string().optional(), next: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/analyzemetadata.ts b/src/sdk/models/operations/analyzemetadata.ts index be25d057..73b84372 100644 --- a/src/sdk/models/operations/analyzemetadata.ts +++ b/src/sdk/models/operations/analyzemetadata.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type AnalyzeMetadataGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AnalyzeMetadataRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * Set the offset to be used for thumbnails @@ -124,43 +133,45 @@ export const AnalyzeMetadataGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AnalyzeMetadataGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +180,29 @@ export const AnalyzeMetadataGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AnalyzeMetadataGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,46 +243,48 @@ export const AnalyzeMetadataRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), thumbOffset: z.number().optional(), artOffset: z.number().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AnalyzeMetadataRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; thumbOffset?: number | undefined; artOffset?: number | undefined; @@ -282,31 +296,32 @@ export const AnalyzeMetadataRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AnalyzeMetadataRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), thumbOffset: z.number().optional(), artOffset: z.number().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/applyupdates.ts b/src/sdk/models/operations/applyupdates.ts index 2719669f..0ead0088 100644 --- a/src/sdk/models/operations/applyupdates.ts +++ b/src/sdk/models/operations/applyupdates.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ApplyUpdatesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ApplyUpdatesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * 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 immediately. */ @@ -124,43 +132,45 @@ export const ApplyUpdatesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ApplyUpdatesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const ApplyUpdatesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ApplyUpdatesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,45 +242,47 @@ export const ApplyUpdatesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), tonight: shared.BoolInt$inboundSchema.optional(), skip: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ApplyUpdatesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; tonight?: number | undefined; skip?: number | undefined; }; @@ -280,30 +293,31 @@ export const ApplyUpdatesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ApplyUpdatesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), tonight: shared.BoolInt$outboundSchema.optional(), skip: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/autocomplete.ts b/src/sdk/models/operations/autocomplete.ts index d059281b..182fa42e 100644 --- a/src/sdk/models/operations/autocomplete.ts +++ b/src/sdk/models/operations/autocomplete.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type AutocompleteGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type AutocompleteRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -137,43 +145,45 @@ export const AutocompleteGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type AutocompleteGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -182,28 +192,29 @@ export const AutocompleteGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, AutocompleteGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -244,48 +255,50 @@ export const AutocompleteRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), type: z.number().int().optional(), "field.query": z.string().optional(), mediaQuery: shared.MediaQuery$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", "field.query": "fieldQuery", }); }); /** @internal */ export type AutocompleteRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; type?: number | undefined; "field.query"?: string | undefined; @@ -298,32 +311,33 @@ export const AutocompleteRequest$outboundSchema: z.ZodType< z.ZodTypeDef, AutocompleteRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), type: z.number().int().optional(), fieldQuery: z.string().optional(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", fieldQuery: "field.query", }); }); diff --git a/src/sdk/models/operations/cancelactivity.ts b/src/sdk/models/operations/cancelactivity.ts index 7ea4c9f7..309583c1 100644 --- a/src/sdk/models/operations/cancelactivity.ts +++ b/src/sdk/models/operations/cancelactivity.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type CancelActivityGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type CancelActivityRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The UUID of the activity to cancel. */ @@ -119,43 +128,45 @@ export const CancelActivityGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CancelActivityGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const CancelActivityGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CancelActivityGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const CancelActivityRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), activityId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CancelActivityRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; activityId: string; }; @@ -273,29 +287,30 @@ export const CancelActivityRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CancelActivityRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), activityId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/cancelgrab.ts b/src/sdk/models/operations/cancelgrab.ts index f4f9353a..c08a4390 100644 --- a/src/sdk/models/operations/cancelgrab.ts +++ b/src/sdk/models/operations/cancelgrab.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type CancelGrabGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type CancelGrabRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the operation. */ @@ -119,43 +128,45 @@ export const CancelGrabGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CancelGrabGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const CancelGrabGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CancelGrabGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const CancelGrabRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), operationId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CancelGrabRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; operationId: string; }; @@ -273,29 +287,30 @@ export const CancelGrabRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CancelGrabRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), operationId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/cancelrefresh.ts b/src/sdk/models/operations/cancelrefresh.ts index 3c721140..e90767b1 100644 --- a/src/sdk/models/operations/cancelrefresh.ts +++ b/src/sdk/models/operations/cancelrefresh.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type CancelRefreshGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type CancelRefreshRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -119,43 +128,45 @@ export const CancelRefreshGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CancelRefreshGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const CancelRefreshGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CancelRefreshGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const CancelRefreshRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CancelRefreshRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -273,29 +287,30 @@ export const CancelRefreshRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CancelRefreshRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/checkupdates.ts b/src/sdk/models/operations/checkupdates.ts index 93aa81fa..06d5d88f 100644 --- a/src/sdk/models/operations/checkupdates.ts +++ b/src/sdk/models/operations/checkupdates.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type CheckUpdatesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type CheckUpdatesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Indicate that you want to start download any updates found. */ @@ -120,43 +128,45 @@ export const CheckUpdatesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CheckUpdatesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -165,28 +175,29 @@ export const CheckUpdatesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CheckUpdatesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -227,44 +238,46 @@ export const CheckUpdatesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), download: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CheckUpdatesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; download?: number | undefined; }; @@ -274,29 +287,30 @@ export const CheckUpdatesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CheckUpdatesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), download: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/clearplaylistitems.ts b/src/sdk/models/operations/clearplaylistitems.ts index e7bcf667..5b3051be 100644 --- a/src/sdk/models/operations/clearplaylistitems.ts +++ b/src/sdk/models/operations/clearplaylistitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ClearPlaylistItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ClearPlaylistItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -126,43 +134,45 @@ export const ClearPlaylistItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ClearPlaylistItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -171,28 +181,29 @@ export const ClearPlaylistItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ClearPlaylistItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -233,44 +244,46 @@ export const ClearPlaylistItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ClearPlaylistItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; }; @@ -280,29 +293,30 @@ export const ClearPlaylistItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ClearPlaylistItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/clearplayqueue.ts b/src/sdk/models/operations/clearplayqueue.ts index 9fcc1016..2a062462 100644 --- a/src/sdk/models/operations/clearplayqueue.ts +++ b/src/sdk/models/operations/clearplayqueue.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ClearPlayQueueGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ClearPlayQueueRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the play queue. */ @@ -126,43 +134,45 @@ export const ClearPlayQueueGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ClearPlayQueueGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -171,28 +181,29 @@ export const ClearPlayQueueGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ClearPlayQueueGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -233,44 +244,46 @@ export const ClearPlayQueueRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playQueueId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ClearPlayQueueRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playQueueId: number; }; @@ -280,29 +293,30 @@ export const ClearPlayQueueRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ClearPlayQueueRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playQueueId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/computechannelmap.ts b/src/sdk/models/operations/computechannelmap.ts index 7064c6d3..e1c62078 100644 --- a/src/sdk/models/operations/computechannelmap.ts +++ b/src/sdk/models/operations/computechannelmap.ts @@ -7,95 +7,104 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type ComputeChannelMapGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ComputeChannelMapRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The URI describing the device */ - device: string; + deviceQueryParameter: string; /** * The URI describing the lineup */ @@ -173,43 +182,45 @@ export const ComputeChannelMapGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ComputeChannelMapGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -218,28 +229,29 @@ export const ComputeChannelMapGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ComputeChannelMapGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -280,46 +292,48 @@ export const ComputeChannelMapRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), - device: z.string(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), + deviceQueryParameter: z.string(), lineup: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ComputeChannelMapRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; - device: string; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; + deviceQueryParameter: string; lineup: string; }; @@ -329,30 +343,31 @@ export const ComputeChannelMapRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ComputeChannelMapRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), - device: z.string(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), + deviceQueryParameter: z.string(), lineup: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/connectwebsocket.ts b/src/sdk/models/operations/connectwebsocket.ts index 54e87137..19ee489c 100644 --- a/src/sdk/models/operations/connectwebsocket.ts +++ b/src/sdk/models/operations/connectwebsocket.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type ConnectWebSocketGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ConnectWebSocketRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * By default, all events except logs are sent. A rich filtering mechanism is provided to allow clients to opt into or out of each event type using the `filters` parameter. For example: * @@ -130,43 +139,45 @@ export const ConnectWebSocketGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ConnectWebSocketGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -175,28 +186,29 @@ export const ConnectWebSocketGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ConnectWebSocketGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -237,44 +249,46 @@ export const ConnectWebSocketRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), filter: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ConnectWebSocketRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; filter?: Array | undefined; }; @@ -284,29 +298,30 @@ export const ConnectWebSocketRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ConnectWebSocketRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), filter: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/createcollection.ts b/src/sdk/models/operations/createcollection.ts index 47a4c679..64ad07cb 100644 --- a/src/sdk/models/operations/createcollection.ts +++ b/src/sdk/models/operations/createcollection.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type CreateCollectionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type CreateCollectionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section where this collection will be created */ @@ -140,43 +148,45 @@ export const CreateCollectionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateCollectionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -185,28 +195,29 @@ export const CreateCollectionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CreateCollectionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -247,16 +258,17 @@ export const CreateCollectionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.string(), title: z.string().optional(), smart: z.boolean().optional(), @@ -264,31 +276,32 @@ export const CreateCollectionRequest$inboundSchema: z.ZodType< type: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateCollectionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: string; title?: string | undefined; smart?: boolean | undefined; @@ -302,16 +315,17 @@ export const CreateCollectionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CreateCollectionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.string(), title: z.string().optional(), smart: z.boolean().optional(), @@ -319,16 +333,16 @@ export const CreateCollectionRequest$outboundSchema: z.ZodType< type: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/createcustomhub.ts b/src/sdk/models/operations/createcustomhub.ts index 19cd496e..140aef5f 100644 --- a/src/sdk/models/operations/createcustomhub.ts +++ b/src/sdk/models/operations/createcustomhub.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type CreateCustomHubGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type CreateCustomHubRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section ID for the hubs to reorder */ @@ -136,43 +144,45 @@ export const CreateCustomHubGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateCustomHubGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -181,28 +191,29 @@ export const CreateCustomHubGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CreateCustomHubGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -243,16 +254,17 @@ export const CreateCustomHubRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), metadataItemId: z.number().int(), promotedToRecommended: shared.BoolInt$inboundSchema.optional(), @@ -260,31 +272,32 @@ export const CreateCustomHubRequest$inboundSchema: z.ZodType< promotedToSharedHome: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateCustomHubRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; metadataItemId: number; promotedToRecommended?: number | undefined; @@ -298,16 +311,17 @@ export const CreateCustomHubRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CreateCustomHubRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), metadataItemId: z.number().int(), promotedToRecommended: shared.BoolInt$outboundSchema.optional(), @@ -315,16 +329,16 @@ export const CreateCustomHubRequest$outboundSchema: z.ZodType< promotedToSharedHome: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/createdvr.ts b/src/sdk/models/operations/createdvr.ts index 38f9c4ae..64243ba2 100644 --- a/src/sdk/models/operations/createdvr.ts +++ b/src/sdk/models/operations/createdvr.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type CreateDVRGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type CreateDVRRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The EPG lineup. */ @@ -100,7 +108,7 @@ export type CreateDVRRequest = { /** * The device. */ - device?: Array | undefined; + deviceQueryParameter?: Array | undefined; /** * The language. */ @@ -135,43 +143,45 @@ export const CreateDVRGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateDVRGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -180,28 +190,29 @@ export const CreateDVRGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDVRGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -242,48 +253,50 @@ export const CreateDVRRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), lineup: z.string().optional(), - device: z.array(z.string()).optional(), + deviceQueryParameter: z.array(z.string()).optional(), language: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateDVRRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; lineup?: string | undefined; - device?: Array | undefined; + deviceQueryParameter?: Array | undefined; language?: string | undefined; }; @@ -293,31 +306,32 @@ export const CreateDVRRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDVRRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), lineup: z.string().optional(), - device: z.array(z.string()).optional(), + deviceQueryParameter: z.array(z.string()).optional(), language: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/createmarker.ts b/src/sdk/models/operations/createmarker.ts index d136f679..d95fa66a 100644 --- a/src/sdk/models/operations/createmarker.ts +++ b/src/sdk/models/operations/createmarker.ts @@ -10,48 +10,53 @@ import { } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type CreateMarkerGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -60,46 +65,50 @@ export type CreateMarkerGlobals = { export type CreateMarkerAttributes = {}; export type CreateMarkerRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * The type of marker to edit/create @@ -190,43 +199,45 @@ export const CreateMarkerGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateMarkerGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -235,28 +246,29 @@ export const CreateMarkerGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CreateMarkerGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -345,16 +357,17 @@ export const CreateMarkerRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), type: z.number().int(), startTimeOffset: z.number().int(), @@ -362,31 +375,32 @@ export const CreateMarkerRequest$inboundSchema: z.ZodType< attributes: z.lazy(() => CreateMarkerAttributes$inboundSchema).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateMarkerRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; type: number; startTimeOffset: number; @@ -400,16 +414,17 @@ export const CreateMarkerRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CreateMarkerRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), type: z.number().int(), startTimeOffset: z.number().int(), @@ -417,16 +432,16 @@ export const CreateMarkerRequest$outboundSchema: z.ZodType< attributes: z.lazy(() => CreateMarkerAttributes$outboundSchema).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/createplaylist.ts b/src/sdk/models/operations/createplaylist.ts index 12e8e8a2..4e0f04ba 100644 --- a/src/sdk/models/operations/createplaylist.ts +++ b/src/sdk/models/operations/createplaylist.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type CreatePlaylistGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type CreatePlaylistRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The content URI for what we're playing (e.g. `library://...`). */ @@ -130,43 +138,45 @@ export const CreatePlaylistGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreatePlaylistGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -175,28 +185,29 @@ export const CreatePlaylistGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CreatePlaylistGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -237,45 +248,47 @@ export const CreatePlaylistRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), uri: z.string().optional(), playQueueID: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreatePlaylistRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; uri?: string | undefined; playQueueID?: number | undefined; }; @@ -286,30 +299,31 @@ export const CreatePlaylistRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CreatePlaylistRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), uri: z.string().optional(), playQueueID: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/createplayqueue.ts b/src/sdk/models/operations/createplayqueue.ts index 00bb2d69..43be032f 100644 --- a/src/sdk/models/operations/createplayqueue.ts +++ b/src/sdk/models/operations/createplayqueue.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type CreatePlayQueueGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -62,46 +66,50 @@ export enum CreatePlayQueueType { } export type CreatePlayQueueRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The content URI for what we're playing. */ @@ -237,43 +245,45 @@ export const CreatePlayQueueGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreatePlayQueueGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -282,28 +292,29 @@ export const CreatePlayQueueGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CreatePlayQueueGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -365,16 +376,17 @@ export const CreatePlayQueueRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), uri: z.string().optional(), playlistID: z.number().int().optional(), type: CreatePlayQueueType$inboundSchema, @@ -387,31 +399,32 @@ export const CreatePlayQueueRequest$inboundSchema: z.ZodType< onDeck: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreatePlayQueueRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; uri?: string | undefined; playlistID?: number | undefined; type: string; @@ -430,16 +443,17 @@ export const CreatePlayQueueRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CreatePlayQueueRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), uri: z.string().optional(), playlistID: z.number().int().optional(), type: CreatePlayQueueType$outboundSchema, @@ -452,16 +466,16 @@ export const CreatePlayQueueRequest$outboundSchema: z.ZodType< onDeck: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/createsubscription.ts b/src/sdk/models/operations/createsubscription.ts index 5177951a..6824c366 100644 --- a/src/sdk/models/operations/createsubscription.ts +++ b/src/sdk/models/operations/createsubscription.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type CreateSubscriptionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -72,46 +76,50 @@ export type CreateSubscriptionPrefs = {}; export type Params = {}; export type CreateSubscriptionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The library section into which we'll grab the media. Not actually required when the subscription is to a playlist. */ @@ -200,43 +208,45 @@ export const CreateSubscriptionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateSubscriptionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -245,28 +255,29 @@ export const CreateSubscriptionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, CreateSubscriptionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -437,16 +448,17 @@ export const CreateSubscriptionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), targetLibrarySectionID: z.number().int().optional(), targetSectionLocationID: z.number().int().optional(), type: z.number().int().optional(), @@ -455,31 +467,32 @@ export const CreateSubscriptionRequest$inboundSchema: z.ZodType< params: z.lazy(() => Params$inboundSchema).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type CreateSubscriptionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; targetLibrarySectionID?: number | undefined; targetSectionLocationID?: number | undefined; type?: number | undefined; @@ -494,16 +507,17 @@ export const CreateSubscriptionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CreateSubscriptionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), targetLibrarySectionID: z.number().int().optional(), targetSectionLocationID: z.number().int().optional(), type: z.number().int().optional(), @@ -512,16 +526,16 @@ export const CreateSubscriptionRequest$outboundSchema: z.ZodType< params: z.lazy(() => Params$outboundSchema).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletecollection.ts b/src/sdk/models/operations/deletecollection.ts index 5483fde8..e158cd4d 100644 --- a/src/sdk/models/operations/deletecollection.ts +++ b/src/sdk/models/operations/deletecollection.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteCollectionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteCollectionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -123,43 +132,45 @@ export const DeleteCollectionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteCollectionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +179,29 @@ export const DeleteCollectionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteCollectionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -230,45 +242,47 @@ export const DeleteCollectionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), collectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteCollectionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; collectionId: number; }; @@ -279,30 +293,31 @@ export const DeleteCollectionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteCollectionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), collectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletecollectionitem.ts b/src/sdk/models/operations/deletecollectionitem.ts index bc34bc51..1f3e42b0 100644 --- a/src/sdk/models/operations/deletecollectionitem.ts +++ b/src/sdk/models/operations/deletecollectionitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DeleteCollectionItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteCollectionItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The collection id */ @@ -128,43 +136,45 @@ export const DeleteCollectionItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteCollectionItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -173,28 +183,29 @@ export const DeleteCollectionItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteCollectionItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -237,45 +248,47 @@ export const DeleteCollectionItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), collectionId: z.number().int(), itemId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteCollectionItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; collectionId: number; itemId: number; }; @@ -286,30 +299,31 @@ export const DeleteCollectionItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteCollectionItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), collectionId: z.number().int(), itemId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletecustomhub.ts b/src/sdk/models/operations/deletecustomhub.ts index 4cab5ad7..e7caca9c 100644 --- a/src/sdk/models/operations/deletecustomhub.ts +++ b/src/sdk/models/operations/deletecustomhub.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteCustomHubGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteCustomHubRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section ID for the hubs to change */ @@ -123,43 +132,45 @@ export const DeleteCustomHubGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteCustomHubGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +179,29 @@ export const DeleteCustomHubGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteCustomHubGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -230,45 +242,47 @@ export const DeleteCustomHubRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), identifier: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteCustomHubRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; identifier: string; }; @@ -279,30 +293,31 @@ export const DeleteCustomHubRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteCustomHubRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), identifier: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletedvr.ts b/src/sdk/models/operations/deletedvr.ts index 965100c3..244116a1 100644 --- a/src/sdk/models/operations/deletedvr.ts +++ b/src/sdk/models/operations/deletedvr.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteDVRGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteDVRRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -119,43 +128,45 @@ export const DeleteDVRGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteDVRGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const DeleteDVRGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteDVRGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const DeleteDVRRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteDVRRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; }; @@ -273,29 +287,30 @@ export const DeleteDVRRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteDVRRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletehistory.ts b/src/sdk/models/operations/deletehistory.ts index bbfb9778..61da2417 100644 --- a/src/sdk/models/operations/deletehistory.ts +++ b/src/sdk/models/operations/deletehistory.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DeleteHistoryGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteHistoryRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the history item (the `historyKey` from above) */ @@ -125,43 +133,45 @@ export const DeleteHistoryGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteHistoryGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const DeleteHistoryGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteHistoryGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,44 +243,46 @@ export const DeleteHistoryRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), historyId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteHistoryRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; historyId: number; }; @@ -279,29 +292,30 @@ export const DeleteHistoryRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteHistoryRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), historyId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deleteindexes.ts b/src/sdk/models/operations/deleteindexes.ts index 9925d8f8..484e2b7b 100644 --- a/src/sdk/models/operations/deleteindexes.ts +++ b/src/sdk/models/operations/deleteindexes.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteIndexesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteIndexesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -119,43 +128,45 @@ export const DeleteIndexesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteIndexesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const DeleteIndexesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteIndexesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const DeleteIndexesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteIndexesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -273,29 +287,30 @@ export const DeleteIndexesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteIndexesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deleteintros.ts b/src/sdk/models/operations/deleteintros.ts index 29a51d4c..38ca0201 100644 --- a/src/sdk/models/operations/deleteintros.ts +++ b/src/sdk/models/operations/deleteintros.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteIntrosGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteIntrosRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -119,43 +128,45 @@ export const DeleteIntrosGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteIntrosGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const DeleteIntrosGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteIntrosGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const DeleteIntrosRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteIntrosRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -273,29 +287,30 @@ export const DeleteIntrosRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteIntrosRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletelibrarysection.ts b/src/sdk/models/operations/deletelibrarysection.ts index 673b033a..d6457e2f 100644 --- a/src/sdk/models/operations/deletelibrarysection.ts +++ b/src/sdk/models/operations/deletelibrarysection.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DeleteLibrarySectionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteLibrarySectionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section identifier */ @@ -124,43 +132,45 @@ export const DeleteLibrarySectionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteLibrarySectionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const DeleteLibrarySectionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteLibrarySectionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -233,45 +244,47 @@ export const DeleteLibrarySectionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.string(), async: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteLibrarySectionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: string; async?: number | undefined; }; @@ -282,30 +295,31 @@ export const DeleteLibrarySectionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteLibrarySectionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.string(), async: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletelineup.ts b/src/sdk/models/operations/deletelineup.ts index d0040b05..bfb2e42b 100644 --- a/src/sdk/models/operations/deletelineup.ts +++ b/src/sdk/models/operations/deletelineup.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DeleteLineupGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteLineupRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -177,43 +185,45 @@ export const DeleteLineupGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteLineupGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -222,28 +232,29 @@ export const DeleteLineupGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteLineupGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -284,45 +295,47 @@ export const DeleteLineupRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), lineup: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteLineupRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; lineup: string; }; @@ -333,30 +346,31 @@ export const DeleteLineupRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteLineupRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), lineup: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletemarker.ts b/src/sdk/models/operations/deletemarker.ts index 6cab7cc8..2976e16a 100644 --- a/src/sdk/models/operations/deletemarker.ts +++ b/src/sdk/models/operations/deletemarker.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteMarkerGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteMarkerRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; marker: string; }; @@ -117,43 +126,45 @@ export const DeleteMarkerGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteMarkerGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -162,28 +173,29 @@ export const DeleteMarkerGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteMarkerGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -224,45 +236,47 @@ export const DeleteMarkerRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), marker: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteMarkerRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; marker: string; }; @@ -273,30 +287,31 @@ export const DeleteMarkerRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteMarkerRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), marker: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletemediaitem.ts b/src/sdk/models/operations/deletemediaitem.ts index 4a8214d2..ebfaf72e 100644 --- a/src/sdk/models/operations/deletemediaitem.ts +++ b/src/sdk/models/operations/deletemediaitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DeleteMediaItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteMediaItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; mediaItem: string; /** @@ -122,43 +130,45 @@ export const DeleteMediaItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteMediaItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -167,28 +177,29 @@ export const DeleteMediaItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteMediaItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -229,46 +240,48 @@ export const DeleteMediaItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), mediaItem: z.string(), proxy: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteMediaItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; mediaItem: string; proxy?: number | undefined; @@ -280,31 +293,32 @@ export const DeleteMediaItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteMediaItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), mediaItem: z.string(), proxy: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletemediaprovider.ts b/src/sdk/models/operations/deletemediaprovider.ts index a44e1f88..70fc1e01 100644 --- a/src/sdk/models/operations/deletemediaprovider.ts +++ b/src/sdk/models/operations/deletemediaprovider.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteMediaProviderGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteMediaProviderRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the media provider to delete */ @@ -119,43 +128,45 @@ export const DeleteMediaProviderGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteMediaProviderGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const DeleteMediaProviderGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteMediaProviderGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const DeleteMediaProviderRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), provider: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteMediaProviderRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; provider: string; }; @@ -273,29 +287,30 @@ export const DeleteMediaProviderRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteMediaProviderRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), provider: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletemetadataitem.ts b/src/sdk/models/operations/deletemetadataitem.ts index dfdd4937..8651e910 100644 --- a/src/sdk/models/operations/deletemetadataitem.ts +++ b/src/sdk/models/operations/deletemetadataitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DeleteMetadataItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteMetadataItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * Whether proxy items, such as media optimized versions, should also be deleted. Defaults to false. @@ -121,43 +129,45 @@ export const DeleteMetadataItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteMetadataItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -166,28 +176,29 @@ export const DeleteMetadataItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteMetadataItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -228,45 +239,47 @@ export const DeleteMetadataItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), proxy: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteMetadataItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; proxy?: number | undefined; }; @@ -277,30 +290,31 @@ export const DeleteMetadataItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteMetadataItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), proxy: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deleteplaylist.ts b/src/sdk/models/operations/deleteplaylist.ts index b1d7532c..683dafba 100644 --- a/src/sdk/models/operations/deleteplaylist.ts +++ b/src/sdk/models/operations/deleteplaylist.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeletePlaylistGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeletePlaylistRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -119,43 +128,45 @@ export const DeletePlaylistGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeletePlaylistGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const DeletePlaylistGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeletePlaylistGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const DeletePlaylistRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeletePlaylistRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; }; @@ -273,29 +287,30 @@ export const DeletePlaylistRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeletePlaylistRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deleteplaylistitem.ts b/src/sdk/models/operations/deleteplaylistitem.ts index a14086f2..28adf43e 100644 --- a/src/sdk/models/operations/deleteplaylistitem.ts +++ b/src/sdk/models/operations/deleteplaylistitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DeletePlaylistItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeletePlaylistItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -130,43 +138,45 @@ export const DeletePlaylistItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeletePlaylistItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -175,28 +185,29 @@ export const DeletePlaylistItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeletePlaylistItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -237,45 +248,47 @@ export const DeletePlaylistItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeletePlaylistItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; generatorId: number; }; @@ -286,30 +299,31 @@ export const DeletePlaylistItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeletePlaylistItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deleteplayqueueitem.ts b/src/sdk/models/operations/deleteplayqueueitem.ts index 2136f383..5278b5d3 100644 --- a/src/sdk/models/operations/deleteplayqueueitem.ts +++ b/src/sdk/models/operations/deleteplayqueueitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DeletePlayQueueItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeletePlayQueueItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the play queue. */ @@ -130,43 +138,45 @@ export const DeletePlayQueueItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeletePlayQueueItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -175,28 +185,29 @@ export const DeletePlayQueueItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeletePlayQueueItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -237,45 +248,47 @@ export const DeletePlayQueueItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playQueueId: z.number().int(), playQueueItemId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeletePlayQueueItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playQueueId: number; playQueueItemId: number; }; @@ -286,30 +299,31 @@ export const DeletePlayQueueItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeletePlayQueueItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playQueueId: z.number().int(), playQueueItemId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletestream.ts b/src/sdk/models/operations/deletestream.ts index cc88e11e..98edd451 100644 --- a/src/sdk/models/operations/deletestream.ts +++ b/src/sdk/models/operations/deletestream.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteStreamGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteStreamRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the stream */ @@ -123,43 +132,45 @@ export const DeleteStreamGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteStreamGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +179,29 @@ export const DeleteStreamGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteStreamGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -230,45 +242,47 @@ export const DeleteStreamRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), streamId: z.number().int(), ext: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteStreamRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; streamId: number; ext: string; }; @@ -279,30 +293,31 @@ export const DeleteStreamRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteStreamRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), streamId: z.number().int(), ext: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/deletesubscription.ts b/src/sdk/models/operations/deletesubscription.ts index 8bfb61b8..d71bd4c3 100644 --- a/src/sdk/models/operations/deletesubscription.ts +++ b/src/sdk/models/operations/deletesubscription.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DeleteSubscriptionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DeleteSubscriptionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; subscriptionId: number; }; @@ -116,43 +125,45 @@ export const DeleteSubscriptionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteSubscriptionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -161,28 +172,29 @@ export const DeleteSubscriptionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteSubscriptionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -223,44 +235,46 @@ export const DeleteSubscriptionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), subscriptionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DeleteSubscriptionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; subscriptionId: number; }; @@ -270,29 +284,30 @@ export const DeleteSubscriptionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteSubscriptionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), subscriptionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/detectads.ts b/src/sdk/models/operations/detectads.ts index b5ccc96b..8c829da1 100644 --- a/src/sdk/models/operations/detectads.ts +++ b/src/sdk/models/operations/detectads.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type DetectAdsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DetectAdsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; }; @@ -116,43 +125,45 @@ export const DetectAdsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DetectAdsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -161,28 +172,29 @@ export const DetectAdsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DetectAdsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -223,44 +235,46 @@ export const DetectAdsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DetectAdsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; }; @@ -270,29 +284,30 @@ export const DetectAdsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DetectAdsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/detectcredits.ts b/src/sdk/models/operations/detectcredits.ts index f37ed070..da40407b 100644 --- a/src/sdk/models/operations/detectcredits.ts +++ b/src/sdk/models/operations/detectcredits.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DetectCreditsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DetectCreditsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; force?: shared.BoolInt | undefined; manual?: shared.BoolInt | undefined; @@ -119,43 +127,45 @@ export const DetectCreditsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DetectCreditsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +174,29 @@ export const DetectCreditsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DetectCreditsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,46 +237,48 @@ export const DetectCreditsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$inboundSchema.optional(), manual: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DetectCreditsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; force?: number | undefined; manual?: number | undefined; @@ -277,31 +290,32 @@ export const DetectCreditsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DetectCreditsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$outboundSchema.optional(), manual: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/detectintros.ts b/src/sdk/models/operations/detectintros.ts index d287955e..2c5f6bab 100644 --- a/src/sdk/models/operations/detectintros.ts +++ b/src/sdk/models/operations/detectintros.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DetectIntrosGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DetectIntrosRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * Indicate whether detection should be re-run @@ -125,43 +133,45 @@ export const DetectIntrosGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DetectIntrosGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const DetectIntrosGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DetectIntrosGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,46 +243,48 @@ export const DetectIntrosRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$inboundSchema.optional(), threshold: z.number().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DetectIntrosRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; force?: number | undefined; threshold?: number | undefined; @@ -283,31 +296,32 @@ export const DetectIntrosRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DetectIntrosRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$outboundSchema.optional(), threshold: z.number().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/detectvoiceactivity.ts b/src/sdk/models/operations/detectvoiceactivity.ts index 87466f63..ce5278ea 100644 --- a/src/sdk/models/operations/detectvoiceactivity.ts +++ b/src/sdk/models/operations/detectvoiceactivity.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type DetectVoiceActivityGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type DetectVoiceActivityRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * Indicate whether detection should be re-run @@ -125,43 +133,45 @@ export const DetectVoiceActivityGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DetectVoiceActivityGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const DetectVoiceActivityGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, DetectVoiceActivityGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,46 +243,48 @@ export const DetectVoiceActivityRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$inboundSchema.optional(), manual: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type DetectVoiceActivityRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; force?: number | undefined; manual?: number | undefined; @@ -283,31 +296,32 @@ export const DetectVoiceActivityRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DetectVoiceActivityRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$outboundSchema.optional(), manual: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/editmarker.ts b/src/sdk/models/operations/editmarker.ts index 181fabbf..69f0e902 100644 --- a/src/sdk/models/operations/editmarker.ts +++ b/src/sdk/models/operations/editmarker.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type EditMarkerGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -58,46 +62,50 @@ export type EditMarkerGlobals = { export type EditMarkerAttributes = {}; export type EditMarkerRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * The id of the marker to edit @@ -146,43 +154,45 @@ export const EditMarkerGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EditMarkerGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -191,28 +201,29 @@ export const EditMarkerGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, EditMarkerGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -301,16 +312,17 @@ export const EditMarkerRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), marker: z.string(), type: z.number().int(), @@ -319,31 +331,32 @@ export const EditMarkerRequest$inboundSchema: z.ZodType< attributes: z.lazy(() => EditMarkerAttributes$inboundSchema).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EditMarkerRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; marker: string; type: number; @@ -358,16 +371,17 @@ export const EditMarkerRequest$outboundSchema: z.ZodType< z.ZodTypeDef, EditMarkerRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), marker: z.string(), type: z.number().int(), @@ -376,16 +390,16 @@ export const EditMarkerRequest$outboundSchema: z.ZodType< attributes: z.lazy(() => EditMarkerAttributes$outboundSchema).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/editmetadataitem.ts b/src/sdk/models/operations/editmetadataitem.ts index 21be1af9..cd5186ae 100644 --- a/src/sdk/models/operations/editmetadataitem.ts +++ b/src/sdk/models/operations/editmetadataitem.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type EditMetadataItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -57,46 +62,50 @@ export type EditMetadataItemGlobals = { export type EditMetadataItemArgs = {}; export type EditMetadataItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: Array; /** * The new values for the metadata item @@ -125,43 +134,45 @@ export const EditMetadataItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EditMetadataItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +181,29 @@ export const EditMetadataItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, EditMetadataItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -280,45 +292,47 @@ export const EditMetadataItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.array(z.string()), args: z.lazy(() => EditMetadataItemArgs$inboundSchema).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EditMetadataItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: Array; args?: EditMetadataItemArgs$Outbound | undefined; }; @@ -329,30 +343,31 @@ export const EditMetadataItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, EditMetadataItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.array(z.string()), args: z.lazy(() => EditMetadataItemArgs$outboundSchema).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/editsection.ts b/src/sdk/models/operations/editsection.ts index c30df925..b4431e55 100644 --- a/src/sdk/models/operations/editsection.ts +++ b/src/sdk/models/operations/editsection.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type EditSectionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -57,46 +62,50 @@ export type EditSectionGlobals = { export type EditSectionPrefs = {}; export type EditSectionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section identifier */ @@ -152,43 +161,45 @@ export const EditSectionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EditSectionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -197,28 +208,29 @@ export const EditSectionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, EditSectionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -307,16 +319,17 @@ export const EditSectionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.string(), name: z.string().optional(), scanner: z.string().optional(), @@ -327,31 +340,32 @@ export const EditSectionRequest$inboundSchema: z.ZodType< prefs: z.lazy(() => EditSectionPrefs$inboundSchema).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EditSectionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: string; name?: string | undefined; scanner?: string | undefined; @@ -368,16 +382,17 @@ export const EditSectionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, EditSectionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.string(), name: z.string().optional(), scanner: z.string().optional(), @@ -388,16 +403,16 @@ export const EditSectionRequest$outboundSchema: z.ZodType< prefs: z.lazy(() => EditSectionPrefs$outboundSchema).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/editsubscriptionpreferences.ts b/src/sdk/models/operations/editsubscriptionpreferences.ts index 9ca2e999..75f263dc 100644 --- a/src/sdk/models/operations/editsubscriptionpreferences.ts +++ b/src/sdk/models/operations/editsubscriptionpreferences.ts @@ -10,91 +10,99 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type EditSubscriptionPreferencesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type EditSubscriptionPreferencesPrefs = {}; export type EditSubscriptionPreferencesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; subscriptionId: number; prefs?: EditSubscriptionPreferencesPrefs | undefined; }; @@ -126,43 +134,45 @@ export const EditSubscriptionPreferencesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EditSubscriptionPreferencesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -171,28 +181,29 @@ export const EditSubscriptionPreferencesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, EditSubscriptionPreferencesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -287,46 +298,48 @@ export const EditSubscriptionPreferencesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), subscriptionId: z.number().int(), prefs: z.lazy(() => EditSubscriptionPreferencesPrefs$inboundSchema) .optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EditSubscriptionPreferencesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; subscriptionId: number; prefs?: EditSubscriptionPreferencesPrefs$Outbound | undefined; }; @@ -337,31 +350,32 @@ export const EditSubscriptionPreferencesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, EditSubscriptionPreferencesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), subscriptionId: z.number().int(), prefs: z.lazy(() => EditSubscriptionPreferencesPrefs$outboundSchema) .optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/emptytrash.ts b/src/sdk/models/operations/emptytrash.ts index 423f7f1c..10bce7cb 100644 --- a/src/sdk/models/operations/emptytrash.ts +++ b/src/sdk/models/operations/emptytrash.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type EmptyTrashGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type EmptyTrashRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -119,43 +128,45 @@ export const EmptyTrashGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EmptyTrashGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const EmptyTrashGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, EmptyTrashGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const EmptyTrashRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EmptyTrashRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -273,29 +287,30 @@ export const EmptyTrashRequest$outboundSchema: z.ZodType< z.ZodTypeDef, EmptyTrashRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/enablepapertrail.ts b/src/sdk/models/operations/enablepapertrail.ts index c4c7b5cf..9c1d2a0e 100644 --- a/src/sdk/models/operations/enablepapertrail.ts +++ b/src/sdk/models/operations/enablepapertrail.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type EnablePapertrailGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type EnablePapertrailRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The number of minutes logging should be sent to Papertrail */ @@ -119,43 +128,45 @@ export const EnablePapertrailGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EnablePapertrailGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const EnablePapertrailGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, EnablePapertrailGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const EnablePapertrailRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), minutes: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type EnablePapertrailRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; minutes?: number | undefined; }; @@ -273,29 +287,30 @@ export const EnablePapertrailRequest$outboundSchema: z.ZodType< z.ZodTypeDef, EnablePapertrailRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), minutes: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/generatethumbs.ts b/src/sdk/models/operations/generatethumbs.ts index 943646bd..b93ea319 100644 --- a/src/sdk/models/operations/generatethumbs.ts +++ b/src/sdk/models/operations/generatethumbs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GenerateThumbsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GenerateThumbsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; force?: shared.BoolInt | undefined; }; @@ -118,43 +126,45 @@ export const GenerateThumbsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GenerateThumbsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -163,28 +173,29 @@ export const GenerateThumbsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GenerateThumbsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -225,45 +236,47 @@ export const GenerateThumbsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GenerateThumbsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; force?: number | undefined; }; @@ -274,30 +287,31 @@ export const GenerateThumbsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GenerateThumbsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getalbums.ts b/src/sdk/models/operations/getalbums.ts index a1b7ba8d..99fa2b13 100644 --- a/src/sdk/models/operations/getalbums.ts +++ b/src/sdk/models/operations/getalbums.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetAlbumsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetAlbumsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -124,43 +132,45 @@ export const GetAlbumsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAlbumsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetAlbumsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetAlbumsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const GetAlbumsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAlbumsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -278,29 +291,30 @@ export const GetAlbumsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetAlbumsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getallhubs.ts b/src/sdk/models/operations/getallhubs.ts index 7673d06c..5a94fc10 100644 --- a/src/sdk/models/operations/getallhubs.ts +++ b/src/sdk/models/operations/getallhubs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetAllHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetAllHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Limit results to count items */ @@ -165,43 +173,45 @@ export const GetAllHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAllHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -210,28 +220,29 @@ export const GetAllHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -272,46 +283,48 @@ export const GetAllHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$inboundSchema.optional(), identifier: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAllHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; count?: number | undefined; onlyTransient?: number | undefined; identifier?: Array | undefined; @@ -323,31 +336,32 @@ export const GetAllHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$outboundSchema.optional(), identifier: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getallitemleaves.ts b/src/sdk/models/operations/getallitemleaves.ts index 00cf99cb..dd706ac2 100644 --- a/src/sdk/models/operations/getallitemleaves.ts +++ b/src/sdk/models/operations/getallitemleaves.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetAllItemLeavesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetAllItemLeavesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; }; @@ -122,43 +130,45 @@ export const GetAllItemLeavesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAllItemLeavesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -167,28 +177,29 @@ export const GetAllItemLeavesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllItemLeavesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -229,44 +240,46 @@ export const GetAllItemLeavesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAllItemLeavesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; }; @@ -276,29 +289,30 @@ export const GetAllItemLeavesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllItemLeavesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getallleaves.ts b/src/sdk/models/operations/getallleaves.ts index 74105dea..4489e377 100644 --- a/src/sdk/models/operations/getallleaves.ts +++ b/src/sdk/models/operations/getallleaves.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetAllLeavesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetAllLeavesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -124,43 +132,45 @@ export const GetAllLeavesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAllLeavesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetAllLeavesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLeavesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const GetAllLeavesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAllLeavesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -278,29 +291,30 @@ export const GetAllLeavesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLeavesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getallsubscriptions.ts b/src/sdk/models/operations/getallsubscriptions.ts index 97b5da95..481207b0 100644 --- a/src/sdk/models/operations/getallsubscriptions.ts +++ b/src/sdk/models/operations/getallsubscriptions.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetAllSubscriptionsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetAllSubscriptionsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Indicates whether the active grabs should be included as well */ @@ -131,43 +139,45 @@ export const GetAllSubscriptionsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAllSubscriptionsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -176,28 +186,29 @@ export const GetAllSubscriptionsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllSubscriptionsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -238,45 +249,47 @@ export const GetAllSubscriptionsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), includeGrabs: shared.BoolInt$inboundSchema.optional(), includeStorage: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAllSubscriptionsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; includeGrabs?: number | undefined; includeStorage?: number | undefined; }; @@ -287,30 +300,31 @@ export const GetAllSubscriptionsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllSubscriptionsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), includeGrabs: shared.BoolInt$outboundSchema.optional(), includeStorage: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getarts.ts b/src/sdk/models/operations/getarts.ts index 0451bdbe..171078b5 100644 --- a/src/sdk/models/operations/getarts.ts +++ b/src/sdk/models/operations/getarts.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetArtsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetArtsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -124,43 +132,45 @@ export const GetArtsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetArtsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetArtsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetArtsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -227,44 +238,46 @@ export const GetArtsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetArtsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -274,29 +287,30 @@ export const GetArtsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetArtsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getaugmentationstatus.ts b/src/sdk/models/operations/getaugmentationstatus.ts index d7de0623..4a31ea70 100644 --- a/src/sdk/models/operations/getaugmentationstatus.ts +++ b/src/sdk/models/operations/getaugmentationstatus.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetAugmentationStatusGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetAugmentationStatusRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the augmentation */ @@ -124,43 +132,45 @@ export const GetAugmentationStatusGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAugmentationStatusGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetAugmentationStatusGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetAugmentationStatusGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -233,45 +244,47 @@ export const GetAugmentationStatusRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), augmentationId: z.string(), wait: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAugmentationStatusRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; augmentationId: string; wait?: number | undefined; }; @@ -282,30 +295,31 @@ export const GetAugmentationStatusRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetAugmentationStatusRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), augmentationId: z.string(), wait: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getavailablegrabbers.ts b/src/sdk/models/operations/getavailablegrabbers.ts index bb477bf2..117a055a 100644 --- a/src/sdk/models/operations/getavailablegrabbers.ts +++ b/src/sdk/models/operations/getavailablegrabbers.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetAvailableGrabbersGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetAvailableGrabbersRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Only return grabbers providing this protocol. */ @@ -162,43 +171,45 @@ export const GetAvailableGrabbersGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAvailableGrabbersGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -207,28 +218,29 @@ export const GetAvailableGrabbersGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetAvailableGrabbersGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -271,44 +283,46 @@ export const GetAvailableGrabbersRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), protocol: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAvailableGrabbersRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; protocol?: string | undefined; }; @@ -318,29 +332,30 @@ export const GetAvailableGrabbersRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetAvailableGrabbersRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), protocol: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getavailablesorts.ts b/src/sdk/models/operations/getavailablesorts.ts index dde4ae2d..b5d8a7a5 100644 --- a/src/sdk/models/operations/getavailablesorts.ts +++ b/src/sdk/models/operations/getavailablesorts.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetAvailableSortsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetAvailableSortsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -156,43 +164,45 @@ export const GetAvailableSortsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAvailableSortsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -201,28 +211,29 @@ export const GetAvailableSortsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetAvailableSortsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -263,44 +274,46 @@ export const GetAvailableSortsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetAvailableSortsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -310,29 +323,30 @@ export const GetAvailableSortsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetAvailableSortsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcategories.ts b/src/sdk/models/operations/getcategories.ts index bf2b259b..6ee182f1 100644 --- a/src/sdk/models/operations/getcategories.ts +++ b/src/sdk/models/operations/getcategories.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetCategoriesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetCategoriesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -124,43 +132,45 @@ export const GetCategoriesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCategoriesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetCategoriesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetCategoriesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const GetCategoriesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCategoriesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -278,29 +291,30 @@ export const GetCategoriesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetCategoriesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getchannels.ts b/src/sdk/models/operations/getchannels.ts index 26d58059..9f39827f 100644 --- a/src/sdk/models/operations/getchannels.ts +++ b/src/sdk/models/operations/getchannels.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetChannelsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetChannelsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The URI describing the lineup */ @@ -157,43 +165,45 @@ export const GetChannelsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetChannelsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -202,28 +212,29 @@ export const GetChannelsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetChannelsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -264,44 +275,46 @@ export const GetChannelsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), lineup: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetChannelsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; lineup: string; }; @@ -311,29 +324,30 @@ export const GetChannelsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetChannelsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), lineup: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getchapterimage.ts b/src/sdk/models/operations/getchapterimage.ts index 87a987ef..43a16444 100644 --- a/src/sdk/models/operations/getchapterimage.ts +++ b/src/sdk/models/operations/getchapterimage.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetChapterImageGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetChapterImageRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the media item */ @@ -127,43 +136,45 @@ export const GetChapterImageGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetChapterImageGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +183,29 @@ export const GetChapterImageGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetChapterImageGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,45 +246,47 @@ export const GetChapterImageRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), mediaId: z.number().int(), chapter: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetChapterImageRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; mediaId: number; chapter: number; }; @@ -283,30 +297,31 @@ export const GetChapterImageRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetChapterImageRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), mediaId: z.number().int(), chapter: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcluster.ts b/src/sdk/models/operations/getcluster.ts index 6aea0174..43496c2c 100644 --- a/src/sdk/models/operations/getcluster.ts +++ b/src/sdk/models/operations/getcluster.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetClusterGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetClusterRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -124,43 +132,45 @@ export const GetClusterGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetClusterGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetClusterGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetClusterGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const GetClusterRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetClusterRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -278,29 +291,30 @@ export const GetClusterRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetClusterRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcollectionimage.ts b/src/sdk/models/operations/getcollectionimage.ts index d0343487..85f50b6c 100644 --- a/src/sdk/models/operations/getcollectionimage.ts +++ b/src/sdk/models/operations/getcollectionimage.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetCollectionImageGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetCollectionImageRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The collection id */ @@ -129,43 +137,45 @@ export const GetCollectionImageGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCollectionImageGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -174,28 +184,29 @@ export const GetCollectionImageGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetCollectionImageGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -236,46 +247,48 @@ export const GetCollectionImageRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), collectionId: z.number().int(), updatedAt: z.number().int(), composite: shared.Composite$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCollectionImageRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; collectionId: number; updatedAt: number; composite?: shared.Composite$Outbound | undefined; @@ -287,31 +300,32 @@ export const GetCollectionImageRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetCollectionImageRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), collectionId: z.number().int(), updatedAt: z.number().int(), composite: shared.Composite$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcollectionitems.ts b/src/sdk/models/operations/getcollectionitems.ts index 4a67078e..32120d30 100644 --- a/src/sdk/models/operations/getcollectionitems.ts +++ b/src/sdk/models/operations/getcollectionitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetCollectionItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetCollectionItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The collection id */ @@ -124,43 +132,45 @@ export const GetCollectionItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCollectionItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetCollectionItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetCollectionItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const GetCollectionItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), collectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCollectionItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; collectionId: number; }; @@ -278,29 +291,30 @@ export const GetCollectionItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetCollectionItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), collectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcollections.ts b/src/sdk/models/operations/getcollections.ts index b574bf20..8fb171b8 100644 --- a/src/sdk/models/operations/getcollections.ts +++ b/src/sdk/models/operations/getcollections.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetCollectionsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetCollectionsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -129,43 +137,45 @@ export const GetCollectionsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCollectionsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -174,28 +184,29 @@ export const GetCollectionsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetCollectionsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -236,45 +247,47 @@ export const GetCollectionsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), mediaQuery: shared.MediaQuery$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCollectionsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; mediaQuery?: shared.MediaQuery$Outbound | undefined; }; @@ -285,30 +298,31 @@ export const GetCollectionsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetCollectionsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcolors.ts b/src/sdk/models/operations/getcolors.ts index 74ce9711..3f956fdf 100644 --- a/src/sdk/models/operations/getcolors.ts +++ b/src/sdk/models/operations/getcolors.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetColorsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetColorsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Url for image which requires color extraction. Can be relative PMS library path or absolute url. */ @@ -174,43 +183,45 @@ export const GetColorsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetColorsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -219,28 +230,29 @@ export const GetColorsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetColorsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -281,44 +293,46 @@ export const GetColorsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), url: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetColorsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; url?: string | undefined; }; @@ -328,29 +342,30 @@ export const GetColorsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetColorsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), url: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcommon.ts b/src/sdk/models/operations/getcommon.ts index c93f22cd..651cbc76 100644 --- a/src/sdk/models/operations/getcommon.ts +++ b/src/sdk/models/operations/getcommon.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetCommonGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetCommonRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -133,43 +141,45 @@ export const GetCommonGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCommonGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -178,28 +188,29 @@ export const GetCommonGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetCommonGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -240,46 +251,48 @@ export const GetCommonRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), type: z.number().int().optional(), mediaQuery: shared.MediaQuery$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCommonRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; type?: number | undefined; mediaQuery?: shared.MediaQuery$Outbound | undefined; @@ -291,31 +304,32 @@ export const GetCommonRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetCommonRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), type: z.number().int().optional(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcontinuewatching.ts b/src/sdk/models/operations/getcontinuewatching.ts index bff3a3bb..2deb148b 100644 --- a/src/sdk/models/operations/getcontinuewatching.ts +++ b/src/sdk/models/operations/getcontinuewatching.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetContinueWatchingGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetContinueWatchingRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Limit results to count items */ @@ -157,43 +165,45 @@ export const GetContinueWatchingGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetContinueWatchingGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -202,28 +212,29 @@ export const GetContinueWatchingGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetContinueWatchingGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -264,44 +275,46 @@ export const GetContinueWatchingRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), count: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetContinueWatchingRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; count?: number | undefined; }; @@ -311,29 +324,30 @@ export const GetContinueWatchingRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetContinueWatchingRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), count: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcountrieslineups.ts b/src/sdk/models/operations/getcountrieslineups.ts index 7adba909..3d16ea4a 100644 --- a/src/sdk/models/operations/getcountrieslineups.ts +++ b/src/sdk/models/operations/getcountrieslineups.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetCountriesLineupsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetCountriesLineupsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * 3 letter country code */ @@ -132,43 +140,45 @@ export const GetCountriesLineupsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCountriesLineupsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -177,28 +187,29 @@ export const GetCountriesLineupsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetCountriesLineupsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -239,46 +250,48 @@ export const GetCountriesLineupsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), country: z.string(), epgId: z.string(), postalCode: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCountriesLineupsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; country: string; epgId: string; postalCode?: string | undefined; @@ -290,31 +303,32 @@ export const GetCountriesLineupsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetCountriesLineupsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), country: z.string(), epgId: z.string(), postalCode: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getcountryregions.ts b/src/sdk/models/operations/getcountryregions.ts index 5f60b423..15278a4c 100644 --- a/src/sdk/models/operations/getcountryregions.ts +++ b/src/sdk/models/operations/getcountryregions.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetCountryRegionsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetCountryRegionsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * 3 letter country code */ @@ -167,43 +176,45 @@ export const GetCountryRegionsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCountryRegionsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -212,28 +223,29 @@ export const GetCountryRegionsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetCountryRegionsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -274,45 +286,47 @@ export const GetCountryRegionsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), country: z.string(), epgId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetCountryRegionsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; country: string; epgId: string; }; @@ -323,30 +337,31 @@ export const GetCountryRegionsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetCountryRegionsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), country: z.string(), epgId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getdevicedetails.ts b/src/sdk/models/operations/getdevicedetails.ts index 564cae95..df1a19b9 100644 --- a/src/sdk/models/operations/getdevicedetails.ts +++ b/src/sdk/models/operations/getdevicedetails.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetDeviceDetailsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetDeviceDetailsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -124,43 +132,45 @@ export const GetDeviceDetailsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDeviceDetailsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetDeviceDetailsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetDeviceDetailsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const GetDeviceDetailsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDeviceDetailsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; }; @@ -278,29 +291,30 @@ export const GetDeviceDetailsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetDeviceDetailsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getdeviceschannels.ts b/src/sdk/models/operations/getdeviceschannels.ts index a58172d0..1b3b8958 100644 --- a/src/sdk/models/operations/getdeviceschannels.ts +++ b/src/sdk/models/operations/getdeviceschannels.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetDevicesChannelsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetDevicesChannelsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -170,43 +179,45 @@ export const GetDevicesChannelsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDevicesChannelsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -215,28 +226,29 @@ export const GetDevicesChannelsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetDevicesChannelsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -277,44 +289,46 @@ export const GetDevicesChannelsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDevicesChannelsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; }; @@ -324,29 +338,30 @@ export const GetDevicesChannelsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetDevicesChannelsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getdownloadqueue.ts b/src/sdk/models/operations/getdownloadqueue.ts index 1be56583..c615a0bc 100644 --- a/src/sdk/models/operations/getdownloadqueue.ts +++ b/src/sdk/models/operations/getdownloadqueue.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetDownloadQueueGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetDownloadQueueRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The queue id */ @@ -189,43 +198,45 @@ export const GetDownloadQueueGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDownloadQueueGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -234,28 +245,29 @@ export const GetDownloadQueueGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetDownloadQueueGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -296,44 +308,46 @@ export const GetDownloadQueueRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), queueId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDownloadQueueRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; queueId: number; }; @@ -343,29 +357,30 @@ export const GetDownloadQueueRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetDownloadQueueRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), queueId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getdownloadqueueitems.ts b/src/sdk/models/operations/getdownloadqueueitems.ts index 892834de..b3b95b64 100644 --- a/src/sdk/models/operations/getdownloadqueueitems.ts +++ b/src/sdk/models/operations/getdownloadqueueitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetDownloadQueueItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetDownloadQueueItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The queue id */ @@ -237,43 +245,45 @@ export const GetDownloadQueueItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDownloadQueueItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -282,28 +292,29 @@ export const GetDownloadQueueItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetDownloadQueueItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -346,45 +357,47 @@ export const GetDownloadQueueItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.array(z.number().int()), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDownloadQueueItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; queueId: number; itemId: Array; }; @@ -395,30 +408,31 @@ export const GetDownloadQueueItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetDownloadQueueItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.array(z.number().int()), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getdownloadqueuemedia.ts b/src/sdk/models/operations/getdownloadqueuemedia.ts index 54c0e20d..429698bb 100644 --- a/src/sdk/models/operations/getdownloadqueuemedia.ts +++ b/src/sdk/models/operations/getdownloadqueuemedia.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetDownloadQueueMediaGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetDownloadQueueMediaRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The queue id */ @@ -124,43 +133,45 @@ export const GetDownloadQueueMediaGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDownloadQueueMediaGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +180,29 @@ export const GetDownloadQueueMediaGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetDownloadQueueMediaGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -233,45 +245,47 @@ export const GetDownloadQueueMediaRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDownloadQueueMediaRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; queueId: number; itemId: number; }; @@ -282,30 +296,31 @@ export const GetDownloadQueueMediaRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetDownloadQueueMediaRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getdvr.ts b/src/sdk/models/operations/getdvr.ts index f4dc079c..7a8d4f69 100644 --- a/src/sdk/models/operations/getdvr.ts +++ b/src/sdk/models/operations/getdvr.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetDVRGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetDVRRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -173,43 +181,45 @@ export const GetDVRGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDVRGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -218,28 +228,29 @@ export const GetDVRGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetDVRGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -276,44 +287,46 @@ export const GetDVRRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetDVRRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; }; @@ -323,29 +336,30 @@ export const GetDVRRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetDVRRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getextras.ts b/src/sdk/models/operations/getextras.ts index ccdefb04..083102de 100644 --- a/src/sdk/models/operations/getextras.ts +++ b/src/sdk/models/operations/getextras.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetExtrasGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetExtrasRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; }; @@ -122,43 +130,45 @@ export const GetExtrasGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetExtrasGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -167,28 +177,29 @@ export const GetExtrasGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetExtrasGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -229,44 +240,46 @@ export const GetExtrasRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetExtrasRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; }; @@ -276,29 +289,30 @@ export const GetExtrasRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetExtrasRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getfile.ts b/src/sdk/models/operations/getfile.ts index 141279d1..bb4de30d 100644 --- a/src/sdk/models/operations/getfile.ts +++ b/src/sdk/models/operations/getfile.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetFileGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetFileRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * The bundle url, typically starting with `metadata://` or `media://` @@ -128,43 +137,45 @@ export const GetFileGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetFileGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -173,28 +184,29 @@ export const GetFileGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetFileGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,45 +243,47 @@ export const GetFileRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), url: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetFileRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; url?: string | undefined; }; @@ -280,30 +294,31 @@ export const GetFileRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetFileRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), url: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getfirstcharacters.ts b/src/sdk/models/operations/getfirstcharacters.ts index 67445752..04d2d667 100644 --- a/src/sdk/models/operations/getfirstcharacters.ts +++ b/src/sdk/models/operations/getfirstcharacters.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetFirstCharactersGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetFirstCharactersRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -177,43 +185,45 @@ export const GetFirstCharactersGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetFirstCharactersGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -222,28 +232,29 @@ export const GetFirstCharactersGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetFirstCharactersGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -284,47 +295,49 @@ export const GetFirstCharactersRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), type: z.number().int().optional(), sort: z.number().int().optional(), mediaQuery: shared.MediaQuery$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetFirstCharactersRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; type?: number | undefined; sort?: number | undefined; @@ -337,32 +350,33 @@ export const GetFirstCharactersRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetFirstCharactersRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), type: z.number().int().optional(), sort: z.number().int().optional(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getfolders.ts b/src/sdk/models/operations/getfolders.ts index 2d559def..5f8f292b 100644 --- a/src/sdk/models/operations/getfolders.ts +++ b/src/sdk/models/operations/getfolders.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetFoldersGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetFoldersRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -161,43 +170,45 @@ export const GetFoldersGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetFoldersGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -206,28 +217,29 @@ export const GetFoldersGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetFoldersGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -268,44 +280,46 @@ export const GetFoldersRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetFoldersRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -315,29 +329,30 @@ export const GetFoldersRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetFoldersRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/gethistoryitem.ts b/src/sdk/models/operations/gethistoryitem.ts index b48783a5..0d9ce7cd 100644 --- a/src/sdk/models/operations/gethistoryitem.ts +++ b/src/sdk/models/operations/gethistoryitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetHistoryItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetHistoryItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the history item (the `historyKey` from above) */ @@ -125,43 +133,45 @@ export const GetHistoryItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetHistoryItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const GetHistoryItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetHistoryItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,44 +243,46 @@ export const GetHistoryItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), historyId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetHistoryItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; historyId: number; }; @@ -279,29 +292,30 @@ export const GetHistoryItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetHistoryItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), historyId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/gethubitems.ts b/src/sdk/models/operations/gethubitems.ts index f445e1fd..ad057a09 100644 --- a/src/sdk/models/operations/gethubitems.ts +++ b/src/sdk/models/operations/gethubitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetHubItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetHubItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Limit results to count items */ @@ -143,43 +151,45 @@ export const GetHubItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetHubItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -188,28 +198,29 @@ export const GetHubItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetHubItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -250,45 +261,47 @@ export const GetHubItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), count: z.number().int().optional(), identifier: z.array(z.string()), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetHubItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; count?: number | undefined; identifier: Array; }; @@ -299,30 +312,31 @@ export const GetHubItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetHubItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), count: z.number().int().optional(), identifier: z.array(z.string()), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getimage.ts b/src/sdk/models/operations/getimage.ts index d58f0993..62296fe7 100644 --- a/src/sdk/models/operations/getimage.ts +++ b/src/sdk/models/operations/getimage.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetImageGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetImageRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The base color (hex) for the top left quadrant. */ @@ -148,43 +156,45 @@ export const GetImageGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetImageGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -193,28 +203,29 @@ export const GetImageGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetImageGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -253,16 +264,17 @@ export const GetImageRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), topLeft: z.string().optional(), topRight: z.string().optional(), bottomRight: z.string().optional(), @@ -272,31 +284,32 @@ export const GetImageRequest$inboundSchema: z.ZodType< noise: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetImageRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; topLeft?: string | undefined; topRight?: string | undefined; bottomRight?: string | undefined; @@ -312,16 +325,17 @@ export const GetImageRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetImageRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), topLeft: z.string().optional(), topRight: z.string().optional(), bottomRight: z.string().optional(), @@ -331,16 +345,16 @@ export const GetImageRequest$outboundSchema: z.ZodType< noise: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getimagefrombif.ts b/src/sdk/models/operations/getimagefrombif.ts index 4258caad..73e54d61 100644 --- a/src/sdk/models/operations/getimagefrombif.ts +++ b/src/sdk/models/operations/getimagefrombif.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetImageFromBifGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -59,46 +64,50 @@ export enum GetImageFromBifIndex { } export type GetImageFromBifRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The part id who's index is to be fetched */ @@ -138,43 +147,45 @@ export const GetImageFromBifGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetImageFromBifGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -183,28 +194,29 @@ export const GetImageFromBifGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetImageFromBifGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -266,46 +278,48 @@ export const GetImageFromBifRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), partId: z.number().int(), index: GetImageFromBifIndex$inboundSchema, offset: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetImageFromBifRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; partId: number; index: string; offset: number; @@ -317,31 +331,32 @@ export const GetImageFromBifRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetImageFromBifRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), partId: z.number().int(), index: GetImageFromBifIndex$outboundSchema, offset: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getitemartwork.ts b/src/sdk/models/operations/getitemartwork.ts index c246cf98..58227063 100644 --- a/src/sdk/models/operations/getitemartwork.ts +++ b/src/sdk/models/operations/getitemartwork.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetItemArtworkGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export enum GetItemArtworkElement { @@ -61,46 +66,50 @@ export enum GetItemArtworkElement { } export type GetItemArtworkRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; element: GetItemArtworkElement; /** @@ -138,43 +147,45 @@ export const GetItemArtworkGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetItemArtworkGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -183,28 +194,29 @@ export const GetItemArtworkGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetItemArtworkGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -266,46 +278,48 @@ export const GetItemArtworkRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), element: GetItemArtworkElement$inboundSchema, timestamp: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetItemArtworkRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; element: string; timestamp: number; @@ -317,31 +331,32 @@ export const GetItemArtworkRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetItemArtworkRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), element: GetItemArtworkElement$outboundSchema, timestamp: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getitemdecision.ts b/src/sdk/models/operations/getitemdecision.ts index 5de721fe..4098624c 100644 --- a/src/sdk/models/operations/getitemdecision.ts +++ b/src/sdk/models/operations/getitemdecision.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetItemDecisionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetItemDecisionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The queue id */ @@ -128,43 +136,45 @@ export const GetItemDecisionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetItemDecisionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -173,28 +183,29 @@ export const GetItemDecisionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetItemDecisionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -235,45 +246,47 @@ export const GetItemDecisionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetItemDecisionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; queueId: number; itemId: number; }; @@ -284,30 +297,31 @@ export const GetItemDecisionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetItemDecisionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getitemtree.ts b/src/sdk/models/operations/getitemtree.ts index 23a21ae7..804d9f23 100644 --- a/src/sdk/models/operations/getitemtree.ts +++ b/src/sdk/models/operations/getitemtree.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetItemTreeGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetItemTreeRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; }; @@ -123,43 +131,45 @@ export const GetItemTreeGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetItemTreeGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +178,29 @@ export const GetItemTreeGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetItemTreeGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -230,44 +241,46 @@ export const GetItemTreeRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetItemTreeRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; }; @@ -277,29 +290,30 @@ export const GetItemTreeRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetItemTreeRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getlibrarydetails.ts b/src/sdk/models/operations/getlibrarydetails.ts index cd40dab4..38ef3a51 100644 --- a/src/sdk/models/operations/getlibrarydetails.ts +++ b/src/sdk/models/operations/getlibrarydetails.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetLibraryDetailsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetLibraryDetailsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section identifier */ @@ -160,43 +168,45 @@ export const GetLibraryDetailsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLibraryDetailsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -205,28 +215,29 @@ export const GetLibraryDetailsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryDetailsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -267,45 +278,47 @@ export const GetLibraryDetailsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.string(), includeDetails: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLibraryDetailsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: string; includeDetails?: number | undefined; }; @@ -316,30 +329,31 @@ export const GetLibraryDetailsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryDetailsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.string(), includeDetails: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getlibraryitems.ts b/src/sdk/models/operations/getlibraryitems.ts index e3cc29d7..7ac28e30 100644 --- a/src/sdk/models/operations/getlibraryitems.ts +++ b/src/sdk/models/operations/getlibraryitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetLibraryItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetLibraryItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * This is a complex query built of several parameters. See [API Info section](#section/API-Info/Media-Queries) for information on building media queries */ @@ -125,43 +133,45 @@ export const GetLibraryItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLibraryItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const GetLibraryItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,44 +243,46 @@ export const GetLibraryItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), mediaQuery: shared.MediaQuery$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLibraryItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; mediaQuery?: shared.MediaQuery$Outbound | undefined; }; @@ -279,29 +292,30 @@ export const GetLibraryItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getlibrarymatches.ts b/src/sdk/models/operations/getlibrarymatches.ts index 4de99eae..677bf290 100644 --- a/src/sdk/models/operations/getlibrarymatches.ts +++ b/src/sdk/models/operations/getlibrarymatches.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetLibraryMatchesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetLibraryMatchesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The metadata type to filter by */ @@ -168,43 +176,45 @@ export const GetLibraryMatchesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLibraryMatchesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -213,28 +223,29 @@ export const GetLibraryMatchesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryMatchesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -275,16 +286,17 @@ export const GetLibraryMatchesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), type: z.number().int().optional(), includeFullMetadata: shared.BoolInt$inboundSchema.optional(), includeAncestorMetadata: shared.BoolInt$inboundSchema.optional(), @@ -301,31 +313,32 @@ export const GetLibraryMatchesRequest$inboundSchema: z.ZodType< parentTitle: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLibraryMatchesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; type?: number | undefined; includeFullMetadata?: number | undefined; includeAncestorMetadata?: number | undefined; @@ -348,16 +361,17 @@ export const GetLibraryMatchesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryMatchesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), type: z.number().int().optional(), includeFullMetadata: shared.BoolInt$outboundSchema.optional(), includeAncestorMetadata: shared.BoolInt$outboundSchema.optional(), @@ -374,16 +388,16 @@ export const GetLibraryMatchesRequest$outboundSchema: z.ZodType< parentTitle: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getlineup.ts b/src/sdk/models/operations/getlineup.ts index 4015279e..4a64fc43 100644 --- a/src/sdk/models/operations/getlineup.ts +++ b/src/sdk/models/operations/getlineup.ts @@ -7,95 +7,104 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetLineupGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetLineupRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The URI describing the device */ - device: string; + deviceQueryParameter: string; /** * The URI describing the lineupGroup */ @@ -124,43 +133,45 @@ export const GetLineupGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLineupGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +180,29 @@ export const GetLineupGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetLineupGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,46 +243,48 @@ export const GetLineupRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), - device: z.string(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), + deviceQueryParameter: z.string(), lineupGroup: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLineupRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; - device: string; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; + deviceQueryParameter: string; lineupGroup: string; }; @@ -280,30 +294,31 @@ export const GetLineupRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetLineupRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), - device: z.string(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), + deviceQueryParameter: z.string(), lineupGroup: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getlineupchannels.ts b/src/sdk/models/operations/getlineupchannels.ts index e2406ce0..a61fb98a 100644 --- a/src/sdk/models/operations/getlineupchannels.ts +++ b/src/sdk/models/operations/getlineupchannels.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetLineupChannelsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetLineupChannelsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The URIs describing the lineups */ @@ -200,43 +208,45 @@ export const GetLineupChannelsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLineupChannelsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -245,28 +255,29 @@ export const GetLineupChannelsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetLineupChannelsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -307,44 +318,46 @@ export const GetLineupChannelsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), lineup: z.array(z.string()), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLineupChannelsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; lineup: Array; }; @@ -354,29 +367,30 @@ export const GetLineupChannelsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetLineupChannelsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), lineup: z.array(z.string()), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getlivetvsession.ts b/src/sdk/models/operations/getlivetvsession.ts index af10a326..9f412c90 100644 --- a/src/sdk/models/operations/getlivetvsession.ts +++ b/src/sdk/models/operations/getlivetvsession.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetLiveTVSessionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetLiveTVSessionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The session id */ @@ -125,43 +133,45 @@ export const GetLiveTVSessionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLiveTVSessionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const GetLiveTVSessionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetLiveTVSessionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,44 +243,46 @@ export const GetLiveTVSessionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sessionId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetLiveTVSessionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sessionId: string; }; @@ -279,29 +292,30 @@ export const GetLiveTVSessionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetLiveTVSessionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sessionId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getmediapart.ts b/src/sdk/models/operations/getmediapart.ts index ec63159b..d071841a 100644 --- a/src/sdk/models/operations/getmediapart.ts +++ b/src/sdk/models/operations/getmediapart.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetMediaPartGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetMediaPartRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The part id who's index is to be fetched */ @@ -133,43 +141,45 @@ export const GetMediaPartGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetMediaPartGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -178,28 +188,29 @@ export const GetMediaPartGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetMediaPartGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -240,47 +251,49 @@ export const GetMediaPartRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), partId: z.number().int(), changestamp: z.number().int(), filename: z.string(), download: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetMediaPartRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; partId: number; changestamp: number; filename: string; @@ -293,32 +306,33 @@ export const GetMediaPartRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetMediaPartRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), partId: z.number().int(), changestamp: z.number().int(), filename: z.string(), download: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getmetadatahubs.ts b/src/sdk/models/operations/getmetadatahubs.ts index 830ae256..003bc1ff 100644 --- a/src/sdk/models/operations/getmetadatahubs.ts +++ b/src/sdk/models/operations/getmetadatahubs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetMetadataHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetMetadataHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The metadata ID for the hubs to fetch */ @@ -133,43 +141,45 @@ export const GetMetadataHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetMetadataHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -178,28 +188,29 @@ export const GetMetadataHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetMetadataHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -240,46 +251,48 @@ export const GetMetadataHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), metadataId: z.number().int(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetMetadataHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; metadataId: number; count?: number | undefined; onlyTransient?: number | undefined; @@ -291,31 +304,32 @@ export const GetMetadataHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetMetadataHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), metadataId: z.number().int(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getmetadataitem.ts b/src/sdk/models/operations/getmetadataitem.ts index 2865bc99..c27ede97 100644 --- a/src/sdk/models/operations/getmetadataitem.ts +++ b/src/sdk/models/operations/getmetadataitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetMetadataItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetMetadataItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: Array; /** * Determines if file check should be performed asynchronously. An activity is created to indicate progress. Default is false. @@ -154,43 +162,45 @@ export const GetMetadataItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetMetadataItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -199,28 +209,29 @@ export const GetMetadataItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetMetadataItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -261,16 +272,17 @@ export const GetMetadataItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.array(z.string()), asyncCheckFiles: shared.BoolInt$inboundSchema.optional(), asyncRefreshLocalMediaAgent: shared.BoolInt$inboundSchema.optional(), @@ -282,31 +294,32 @@ export const GetMetadataItemRequest$inboundSchema: z.ZodType< augmentCount: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetMetadataItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: Array; asyncCheckFiles?: number | undefined; asyncRefreshLocalMediaAgent?: number | undefined; @@ -324,16 +337,17 @@ export const GetMetadataItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetMetadataItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.array(z.string()), asyncCheckFiles: shared.BoolInt$outboundSchema.optional(), asyncRefreshLocalMediaAgent: shared.BoolInt$outboundSchema.optional(), @@ -345,16 +359,16 @@ export const GetMetadataItemRequest$outboundSchema: z.ZodType< augmentCount: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getnotifications.ts b/src/sdk/models/operations/getnotifications.ts index 0ad4590a..56f8a2ce 100644 --- a/src/sdk/models/operations/getnotifications.ts +++ b/src/sdk/models/operations/getnotifications.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetNotificationsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetNotificationsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * By default, all events except logs are sent. A rich filtering mechanism is provided to allow clients to opt into or out of each event type using the `filters` parameter. For example: * @@ -130,43 +139,45 @@ export const GetNotificationsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetNotificationsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -175,28 +186,29 @@ export const GetNotificationsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetNotificationsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -237,44 +249,46 @@ export const GetNotificationsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), filter: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetNotificationsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; filter?: Array | undefined; }; @@ -284,29 +298,30 @@ export const GetNotificationsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetNotificationsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), filter: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getpartindex.ts b/src/sdk/models/operations/getpartindex.ts index 168fa131..b6eb927d 100644 --- a/src/sdk/models/operations/getpartindex.ts +++ b/src/sdk/models/operations/getpartindex.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetPartIndexGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -59,46 +64,50 @@ export enum GetPartIndexIndex { } export type GetPartIndexRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The part id who's index is to be fetched */ @@ -138,43 +147,45 @@ export const GetPartIndexGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPartIndexGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -183,28 +194,29 @@ export const GetPartIndexGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPartIndexGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -266,46 +278,48 @@ export const GetPartIndexRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), partId: z.number().int(), index: GetPartIndexIndex$inboundSchema, interval: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPartIndexRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; partId: number; index: string; interval?: number | undefined; @@ -317,31 +331,32 @@ export const GetPartIndexRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPartIndexRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), partId: z.number().int(), index: GetPartIndexIndex$outboundSchema, interval: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getperson.ts b/src/sdk/models/operations/getperson.ts index 3242195c..c7750b26 100644 --- a/src/sdk/models/operations/getperson.ts +++ b/src/sdk/models/operations/getperson.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetPersonGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPersonRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Either the PMS tag `id` of the person or `tagKey` of the actor. Note the `tagKey` is the hex portion of the plex guid for the actor */ @@ -156,43 +164,45 @@ export const GetPersonGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPersonGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -201,28 +211,29 @@ export const GetPersonGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPersonGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -263,44 +274,46 @@ export const GetPersonRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), personId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPersonRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; personId: string; }; @@ -310,29 +323,30 @@ export const GetPersonRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPersonRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), personId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getplaylist.ts b/src/sdk/models/operations/getplaylist.ts index 05663ae2..a584ca46 100644 --- a/src/sdk/models/operations/getplaylist.ts +++ b/src/sdk/models/operations/getplaylist.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetPlaylistGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPlaylistRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -126,43 +134,45 @@ export const GetPlaylistGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -171,28 +181,29 @@ export const GetPlaylistGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -233,44 +244,46 @@ export const GetPlaylistRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; }; @@ -280,29 +293,30 @@ export const GetPlaylistRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getplaylistgenerator.ts b/src/sdk/models/operations/getplaylistgenerator.ts index 49176aeb..b1148ef7 100644 --- a/src/sdk/models/operations/getplaylistgenerator.ts +++ b/src/sdk/models/operations/getplaylistgenerator.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetPlaylistGeneratorGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPlaylistGeneratorRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -271,43 +280,45 @@ export const GetPlaylistGeneratorGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistGeneratorGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -316,28 +327,29 @@ export const GetPlaylistGeneratorGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistGeneratorGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -380,45 +392,47 @@ export const GetPlaylistGeneratorRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistGeneratorRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; generatorId: number; }; @@ -429,30 +443,31 @@ export const GetPlaylistGeneratorRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistGeneratorRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getplaylistgeneratoritems.ts b/src/sdk/models/operations/getplaylistgeneratoritems.ts index 13e18c37..311c3598 100644 --- a/src/sdk/models/operations/getplaylistgeneratoritems.ts +++ b/src/sdk/models/operations/getplaylistgeneratoritems.ts @@ -13,89 +13,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetPlaylistGeneratorItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPlaylistGeneratorItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -452,43 +460,45 @@ export const GetPlaylistGeneratorItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistGeneratorItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -497,28 +507,29 @@ export const GetPlaylistGeneratorItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistGeneratorItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -561,45 +572,47 @@ export const GetPlaylistGeneratorItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistGeneratorItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; generatorId: number; }; @@ -610,30 +623,31 @@ export const GetPlaylistGeneratorItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistGeneratorItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getplaylistgenerators.ts b/src/sdk/models/operations/getplaylistgenerators.ts index 40847f7c..d7ab07ad 100644 --- a/src/sdk/models/operations/getplaylistgenerators.ts +++ b/src/sdk/models/operations/getplaylistgenerators.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetPlaylistGeneratorsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPlaylistGeneratorsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -189,43 +198,45 @@ export const GetPlaylistGeneratorsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistGeneratorsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -234,28 +245,29 @@ export const GetPlaylistGeneratorsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistGeneratorsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -298,44 +310,46 @@ export const GetPlaylistGeneratorsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistGeneratorsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; }; @@ -345,29 +359,30 @@ export const GetPlaylistGeneratorsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistGeneratorsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getplaylistitems.ts b/src/sdk/models/operations/getplaylistitems.ts index 46856944..c5fca3d0 100644 --- a/src/sdk/models/operations/getplaylistitems.ts +++ b/src/sdk/models/operations/getplaylistitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetPlaylistItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPlaylistItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -129,43 +137,45 @@ export const GetPlaylistItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -174,28 +184,29 @@ export const GetPlaylistItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -236,45 +247,47 @@ export const GetPlaylistItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), type: z.array(z.number().int()).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlaylistItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; type?: Array | undefined; }; @@ -285,30 +298,31 @@ export const GetPlaylistItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), type: z.array(z.number().int()).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getplayqueue.ts b/src/sdk/models/operations/getplayqueue.ts index d2a10d23..67cbe932 100644 --- a/src/sdk/models/operations/getplayqueue.ts +++ b/src/sdk/models/operations/getplayqueue.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetPlayQueueGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPlayQueueRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the play queue. */ @@ -146,43 +154,45 @@ export const GetPlayQueueGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlayQueueGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -191,28 +201,29 @@ export const GetPlayQueueGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlayQueueGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -253,16 +264,17 @@ export const GetPlayQueueRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playQueueId: z.number().int(), own: shared.BoolInt$inboundSchema.optional(), center: z.string().optional(), @@ -271,31 +283,32 @@ export const GetPlayQueueRequest$inboundSchema: z.ZodType< includeAfter: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPlayQueueRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playQueueId: number; own?: number | undefined; center?: string | undefined; @@ -310,16 +323,17 @@ export const GetPlayQueueRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlayQueueRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playQueueId: z.number().int(), own: shared.BoolInt$outboundSchema.optional(), center: z.string().optional(), @@ -328,16 +342,16 @@ export const GetPlayQueueRequest$outboundSchema: z.ZodType< includeAfter: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getpostplayhubs.ts b/src/sdk/models/operations/getpostplayhubs.ts index 29479333..28966487 100644 --- a/src/sdk/models/operations/getpostplayhubs.ts +++ b/src/sdk/models/operations/getpostplayhubs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetPostplayHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPostplayHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The metadata ID for the hubs to fetch */ @@ -133,43 +141,45 @@ export const GetPostplayHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPostplayHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -178,28 +188,29 @@ export const GetPostplayHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPostplayHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -240,46 +251,48 @@ export const GetPostplayHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), metadataId: z.number().int(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPostplayHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; metadataId: number; count?: number | undefined; onlyTransient?: number | undefined; @@ -291,31 +304,32 @@ export const GetPostplayHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPostplayHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), metadataId: z.number().int(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getpreference.ts b/src/sdk/models/operations/getpreference.ts index 2d2a6cbb..083aeae7 100644 --- a/src/sdk/models/operations/getpreference.ts +++ b/src/sdk/models/operations/getpreference.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetPreferenceGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPreferenceRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The preference to fetch */ @@ -124,43 +132,45 @@ export const GetPreferenceGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPreferenceGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetPreferenceGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPreferenceGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const GetPreferenceRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), id: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPreferenceRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; id?: string | undefined; }; @@ -278,29 +291,30 @@ export const GetPreferenceRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPreferenceRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), id: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getpromotedhubs.ts b/src/sdk/models/operations/getpromotedhubs.ts index 26e76129..0875287b 100644 --- a/src/sdk/models/operations/getpromotedhubs.ts +++ b/src/sdk/models/operations/getpromotedhubs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetPromotedHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetPromotedHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Limit results to count items */ @@ -157,43 +165,45 @@ export const GetPromotedHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPromotedHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -202,28 +212,29 @@ export const GetPromotedHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetPromotedHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -264,44 +275,46 @@ export const GetPromotedHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), count: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetPromotedHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; count?: number | undefined; }; @@ -311,29 +324,30 @@ export const GetPromotedHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPromotedHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), count: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getrandomartwork.ts b/src/sdk/models/operations/getrandomartwork.ts index 2e71d103..be347c2a 100644 --- a/src/sdk/models/operations/getrandomartwork.ts +++ b/src/sdk/models/operations/getrandomartwork.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetRandomArtworkGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetRandomArtworkRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The sections for which to fetch artwork. */ @@ -124,43 +132,45 @@ export const GetRandomArtworkGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetRandomArtworkGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const GetRandomArtworkGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetRandomArtworkGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const GetRandomArtworkRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sections: z.array(z.number().int()).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetRandomArtworkRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sections?: Array | undefined; }; @@ -278,29 +291,30 @@ export const GetRandomArtworkRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetRandomArtworkRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sections: z.array(z.number().int()).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getrelatedhubs.ts b/src/sdk/models/operations/getrelatedhubs.ts index 35169cf4..bcb56732 100644 --- a/src/sdk/models/operations/getrelatedhubs.ts +++ b/src/sdk/models/operations/getrelatedhubs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetRelatedHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetRelatedHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The metadata ID for the hubs to fetch */ @@ -133,43 +141,45 @@ export const GetRelatedHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetRelatedHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -178,28 +188,29 @@ export const GetRelatedHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetRelatedHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -240,46 +251,48 @@ export const GetRelatedHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), metadataId: z.number().int(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetRelatedHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; metadataId: number; count?: number | undefined; onlyTransient?: number | undefined; @@ -291,31 +304,32 @@ export const GetRelatedHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetRelatedHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), metadataId: z.number().int(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getrelateditems.ts b/src/sdk/models/operations/getrelateditems.ts index 0325372d..b72c78b9 100644 --- a/src/sdk/models/operations/getrelateditems.ts +++ b/src/sdk/models/operations/getrelateditems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetRelatedItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetRelatedItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; }; @@ -153,43 +161,45 @@ export const GetRelatedItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetRelatedItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -198,28 +208,29 @@ export const GetRelatedItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetRelatedItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -260,44 +271,46 @@ export const GetRelatedItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetRelatedItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; }; @@ -307,29 +320,30 @@ export const GetRelatedItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetRelatedItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsectionfilters.ts b/src/sdk/models/operations/getsectionfilters.ts index 15389ee2..6c90a27d 100644 --- a/src/sdk/models/operations/getsectionfilters.ts +++ b/src/sdk/models/operations/getsectionfilters.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSectionFiltersGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSectionFiltersRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -156,43 +164,45 @@ export const GetSectionFiltersGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionFiltersGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -201,28 +211,29 @@ export const GetSectionFiltersGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionFiltersGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -263,44 +274,46 @@ export const GetSectionFiltersRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionFiltersRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -310,29 +323,30 @@ export const GetSectionFiltersRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionFiltersRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsectionhubs.ts b/src/sdk/models/operations/getsectionhubs.ts index 8aa7e0af..b9265c08 100644 --- a/src/sdk/models/operations/getsectionhubs.ts +++ b/src/sdk/models/operations/getsectionhubs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSectionHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSectionHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section ID for the hubs to fetch */ @@ -165,43 +173,45 @@ export const GetSectionHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -210,28 +220,29 @@ export const GetSectionHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -272,46 +283,48 @@ export const GetSectionHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; count?: number | undefined; onlyTransient?: number | undefined; @@ -323,31 +336,32 @@ export const GetSectionHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), count: z.number().int().optional(), onlyTransient: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsectionimage.ts b/src/sdk/models/operations/getsectionimage.ts index 52181c96..5bcccc9d 100644 --- a/src/sdk/models/operations/getsectionimage.ts +++ b/src/sdk/models/operations/getsectionimage.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSectionImageGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSectionImageRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -129,43 +137,45 @@ export const GetSectionImageGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionImageGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -174,28 +184,29 @@ export const GetSectionImageGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionImageGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -236,47 +247,49 @@ export const GetSectionImageRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), updatedAt: z.number().int(), mediaQuery: shared.MediaQuery$inboundSchema.optional(), composite: shared.Composite$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionImageRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; updatedAt: number; mediaQuery?: shared.MediaQuery$Outbound | undefined; @@ -289,32 +302,33 @@ export const GetSectionImageRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionImageRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), updatedAt: z.number().int(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), composite: shared.Composite$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsectionpreferences.ts b/src/sdk/models/operations/getsectionpreferences.ts index 5ed59eaf..08ffad33 100644 --- a/src/sdk/models/operations/getsectionpreferences.ts +++ b/src/sdk/models/operations/getsectionpreferences.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSectionPreferencesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSectionPreferencesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -125,43 +133,45 @@ export const GetSectionPreferencesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionPreferencesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const GetSectionPreferencesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionPreferencesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,45 +245,47 @@ export const GetSectionPreferencesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), agent: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionPreferencesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; agent?: string | undefined; }; @@ -283,30 +296,31 @@ export const GetSectionPreferencesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionPreferencesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), agent: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsectionsprefs.ts b/src/sdk/models/operations/getsectionsprefs.ts index d005fc13..9afc279b 100644 --- a/src/sdk/models/operations/getsectionsprefs.ts +++ b/src/sdk/models/operations/getsectionsprefs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSectionsPrefsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSectionsPrefsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The metadata type */ @@ -130,43 +138,45 @@ export const GetSectionsPrefsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionsPrefsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -175,28 +185,29 @@ export const GetSectionsPrefsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionsPrefsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -237,45 +248,47 @@ export const GetSectionsPrefsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), type: z.number().int(), agent: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSectionsPrefsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; type: number; agent?: string | undefined; }; @@ -286,30 +299,31 @@ export const GetSectionsPrefsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSectionsPrefsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), type: z.number().int(), agent: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getserverinfo.ts b/src/sdk/models/operations/getserverinfo.ts index 0f1a8468..80b4e0b9 100644 --- a/src/sdk/models/operations/getserverinfo.ts +++ b/src/sdk/models/operations/getserverinfo.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetServerInfoGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetServerInfoRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetServerInfoResponse = { @@ -120,43 +128,45 @@ export const GetServerInfoGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetServerInfoGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -165,28 +175,29 @@ export const GetServerInfoGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetServerInfoGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -227,43 +238,45 @@ export const GetServerInfoRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetServerInfoRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -272,28 +285,29 @@ export const GetServerInfoRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetServerInfoRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsessionplaylistindex.ts b/src/sdk/models/operations/getsessionplaylistindex.ts index 2a382cec..1010b1e6 100644 --- a/src/sdk/models/operations/getsessionplaylistindex.ts +++ b/src/sdk/models/operations/getsessionplaylistindex.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetSessionPlaylistIndexGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSessionPlaylistIndexRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The session id */ @@ -123,43 +132,45 @@ export const GetSessionPlaylistIndexGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSessionPlaylistIndexGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +179,29 @@ export const GetSessionPlaylistIndexGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSessionPlaylistIndexGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,45 +244,47 @@ export const GetSessionPlaylistIndexRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sessionId: z.string(), consumerId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSessionPlaylistIndexRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sessionId: string; consumerId: string; }; @@ -281,30 +295,31 @@ export const GetSessionPlaylistIndexRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSessionPlaylistIndexRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sessionId: z.string(), consumerId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsessionsegment.ts b/src/sdk/models/operations/getsessionsegment.ts index 0d302aad..7ec88849 100644 --- a/src/sdk/models/operations/getsessionsegment.ts +++ b/src/sdk/models/operations/getsessionsegment.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetSessionSegmentGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSessionSegmentRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The session id */ @@ -127,43 +136,45 @@ export const GetSessionSegmentGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSessionSegmentGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +183,29 @@ export const GetSessionSegmentGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSessionSegmentGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,46 +246,48 @@ export const GetSessionSegmentRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sessionId: z.string(), consumerId: z.string(), segmentId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSessionSegmentRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sessionId: string; consumerId: string; segmentId: string; @@ -285,31 +299,32 @@ export const GetSessionSegmentRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSessionSegmentRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sessionId: z.string(), consumerId: z.string(), segmentId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsonicallysimilar.ts b/src/sdk/models/operations/getsonicallysimilar.ts index cc80994b..f6f90ef5 100644 --- a/src/sdk/models/operations/getsonicallysimilar.ts +++ b/src/sdk/models/operations/getsonicallysimilar.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSonicallySimilarGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSonicallySimilarRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -140,43 +148,45 @@ export const GetSonicallySimilarGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSonicallySimilarGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -185,28 +195,29 @@ export const GetSonicallySimilarGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSonicallySimilarGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -247,16 +258,17 @@ export const GetSonicallySimilarRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), type: z.number().int().optional(), values: z.array(z.number().int()), @@ -264,31 +276,32 @@ export const GetSonicallySimilarRequest$inboundSchema: z.ZodType< maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSonicallySimilarRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; type?: number | undefined; values: Array; @@ -302,16 +315,17 @@ export const GetSonicallySimilarRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSonicallySimilarRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), type: z.number().int().optional(), values: z.array(z.number().int()), @@ -319,16 +333,16 @@ export const GetSonicallySimilarRequest$outboundSchema: z.ZodType< maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsonicpath.ts b/src/sdk/models/operations/getsonicpath.ts index cafd81d0..b4e52151 100644 --- a/src/sdk/models/operations/getsonicpath.ts +++ b/src/sdk/models/operations/getsonicpath.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSonicPathGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSonicPathRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -140,43 +148,45 @@ export const GetSonicPathGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSonicPathGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -185,28 +195,29 @@ export const GetSonicPathGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSonicPathGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -247,16 +258,17 @@ export const GetSonicPathRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), startID: z.number().int(), endID: z.number().int(), @@ -264,31 +276,32 @@ export const GetSonicPathRequest$inboundSchema: z.ZodType< maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSonicPathRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; startID: number; endID: number; @@ -302,16 +315,17 @@ export const GetSonicPathRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSonicPathRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), startID: z.number().int(), endID: z.number().int(), @@ -319,16 +333,16 @@ export const GetSonicPathRequest$outboundSchema: z.ZodType< maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsourceconnectioninformation.ts b/src/sdk/models/operations/getsourceconnectioninformation.ts index cdeecdfc..8bdd4ba7 100644 --- a/src/sdk/models/operations/getsourceconnectioninformation.ts +++ b/src/sdk/models/operations/getsourceconnectioninformation.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSourceConnectionInformationGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSourceConnectionInformationRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The source identifier with an included prefix. */ @@ -182,43 +190,45 @@ export const GetSourceConnectionInformationGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSourceConnectionInformationGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -227,28 +237,29 @@ export const GetSourceConnectionInformationGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSourceConnectionInformationGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -294,45 +305,47 @@ export const GetSourceConnectionInformationRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), source: z.string(), refresh: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSourceConnectionInformationRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; source: string; refresh?: number | undefined; }; @@ -343,30 +356,31 @@ export const GetSourceConnectionInformationRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSourceConnectionInformationRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), source: z.string(), refresh: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getstream.ts b/src/sdk/models/operations/getstream.ts index e9d7ff16..5caf55bb 100644 --- a/src/sdk/models/operations/getstream.ts +++ b/src/sdk/models/operations/getstream.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetStreamGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetStreamRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the stream */ @@ -136,43 +144,45 @@ export const GetStreamGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetStreamGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -181,28 +191,29 @@ export const GetStreamGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetStreamGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -243,16 +254,17 @@ export const GetStreamRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), streamId: z.number().int(), ext: z.string(), encoding: z.string().optional(), @@ -260,31 +272,32 @@ export const GetStreamRequest$inboundSchema: z.ZodType< autoAdjustSubtitle: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetStreamRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; streamId: number; ext: string; encoding?: string | undefined; @@ -298,16 +311,17 @@ export const GetStreamRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetStreamRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), streamId: z.number().int(), ext: z.string(), encoding: z.string().optional(), @@ -315,16 +329,16 @@ export const GetStreamRequest$outboundSchema: z.ZodType< autoAdjustSubtitle: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getstreamlevels.ts b/src/sdk/models/operations/getstreamlevels.ts index bb5e7c7d..ba2c123c 100644 --- a/src/sdk/models/operations/getstreamlevels.ts +++ b/src/sdk/models/operations/getstreamlevels.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetStreamLevelsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetStreamLevelsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the stream */ @@ -170,43 +179,45 @@ export const GetStreamLevelsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetStreamLevelsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -215,28 +226,29 @@ export const GetStreamLevelsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetStreamLevelsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -277,45 +289,47 @@ export const GetStreamLevelsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), streamId: z.number().int(), subsample: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetStreamLevelsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; streamId: number; subsample?: number | undefined; }; @@ -326,30 +340,31 @@ export const GetStreamLevelsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetStreamLevelsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), streamId: z.number().int(), subsample: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getstreamloudness.ts b/src/sdk/models/operations/getstreamloudness.ts index 24a994cc..ba52b4bb 100644 --- a/src/sdk/models/operations/getstreamloudness.ts +++ b/src/sdk/models/operations/getstreamloudness.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetStreamLoudnessGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetStreamLoudnessRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the stream */ @@ -127,43 +136,45 @@ export const GetStreamLoudnessGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetStreamLoudnessGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +183,29 @@ export const GetStreamLoudnessGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetStreamLoudnessGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,45 +246,47 @@ export const GetStreamLoudnessRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), streamId: z.number().int(), subsample: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetStreamLoudnessRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; streamId: number; subsample?: number | undefined; }; @@ -283,30 +297,31 @@ export const GetStreamLoudnessRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetStreamLoudnessRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), streamId: z.number().int(), subsample: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getsubscription.ts b/src/sdk/models/operations/getsubscription.ts index 38df458c..e820f114 100644 --- a/src/sdk/models/operations/getsubscription.ts +++ b/src/sdk/models/operations/getsubscription.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetSubscriptionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetSubscriptionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; subscriptionId: number; /** * Indicates whether the active grabs should be included as well @@ -131,43 +139,45 @@ export const GetSubscriptionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSubscriptionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -176,28 +186,29 @@ export const GetSubscriptionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetSubscriptionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -238,46 +249,48 @@ export const GetSubscriptionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), subscriptionId: z.number().int(), includeGrabs: shared.BoolInt$inboundSchema.optional(), includeStorage: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetSubscriptionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; subscriptionId: number; includeGrabs?: number | undefined; includeStorage?: number | undefined; @@ -289,31 +302,32 @@ export const GetSubscriptionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetSubscriptionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), subscriptionId: z.number().int(), includeGrabs: shared.BoolInt$outboundSchema.optional(), includeStorage: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/gettags.ts b/src/sdk/models/operations/gettags.ts index 1f990fe0..46fc7032 100644 --- a/src/sdk/models/operations/gettags.ts +++ b/src/sdk/models/operations/gettags.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetTagsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetTagsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The metadata type to filter by */ @@ -179,43 +188,45 @@ export const GetTagsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetTagsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -224,28 +235,29 @@ export const GetTagsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetTagsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -282,44 +294,46 @@ export const GetTagsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), type: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetTagsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; type?: number | undefined; }; @@ -329,29 +343,30 @@ export const GetTagsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetTagsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), type: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/gettemplate.ts b/src/sdk/models/operations/gettemplate.ts index 643641b0..5054de36 100644 --- a/src/sdk/models/operations/gettemplate.ts +++ b/src/sdk/models/operations/gettemplate.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type GetTemplateGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetTemplateRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The guid of the item for which to get the template */ @@ -217,43 +225,45 @@ export const GetTemplateGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetTemplateGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -262,28 +272,29 @@ export const GetTemplateGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetTemplateGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -324,44 +335,46 @@ export const GetTemplateRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), guid: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetTemplateRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; guid?: string | undefined; }; @@ -371,29 +384,30 @@ export const GetTemplateRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetTemplateRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), guid: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/getthumb.ts b/src/sdk/models/operations/getthumb.ts index bf3ead20..e063fadc 100644 --- a/src/sdk/models/operations/getthumb.ts +++ b/src/sdk/models/operations/getthumb.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetThumbGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type GetThumbRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -99,7 +108,7 @@ export type GetThumbRequest = { /** * A version number of the thumb used for busting cache */ - version: number; + versionPathParameter: number; }; export type GetThumbResponse = { @@ -123,43 +132,45 @@ export const GetThumbGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetThumbGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +179,29 @@ export const GetThumbGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetThumbGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -228,47 +240,49 @@ export const GetThumbRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), - version: z.number().int(), + versionPathParameter: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetThumbRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; - version: number; + versionPathParameter: number; }; /** @internal */ @@ -277,30 +291,31 @@ export const GetThumbRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetThumbRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), - version: z.number().int(), + versionPathParameter: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/gettransienttoken.ts b/src/sdk/models/operations/gettransienttoken.ts index 6b90d88f..7001e5a4 100644 --- a/src/sdk/models/operations/gettransienttoken.ts +++ b/src/sdk/models/operations/gettransienttoken.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type GetTransientTokenGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -66,46 +71,50 @@ export enum GetTransientTokenScope { } export type GetTransientTokenRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The value `delegation` is the only supported `type` parameter. */ @@ -176,43 +185,45 @@ export const GetTransientTokenGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetTransientTokenGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -221,28 +232,29 @@ export const GetTransientTokenGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, GetTransientTokenGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -325,45 +337,47 @@ export const GetTransientTokenRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), type: GetTransientTokenType$inboundSchema, scope: GetTransientTokenScope$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type GetTransientTokenRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; type: string; scope: string; }; @@ -374,30 +388,31 @@ export const GetTransientTokenRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetTransientTokenRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), type: GetTransientTokenType$outboundSchema, scope: GetTransientTokenScope$outboundSchema, }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/ingesttransientitem.ts b/src/sdk/models/operations/ingesttransientitem.ts index bc214b18..a870931a 100644 --- a/src/sdk/models/operations/ingesttransientitem.ts +++ b/src/sdk/models/operations/ingesttransientitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type IngestTransientItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type IngestTransientItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The file of the file to ingest. */ @@ -137,43 +145,45 @@ export const IngestTransientItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type IngestTransientItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -182,28 +192,29 @@ export const IngestTransientItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, IngestTransientItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -244,47 +255,49 @@ export const IngestTransientItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), url: z.string().optional(), virtualFilePath: z.string().optional(), computeHashes: shared.BoolInt$inboundSchema.optional(), ingestNonMatches: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type IngestTransientItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; url?: string | undefined; virtualFilePath?: string | undefined; computeHashes?: number | undefined; @@ -297,32 +310,33 @@ export const IngestTransientItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, IngestTransientItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), url: z.string().optional(), virtualFilePath: z.string().optional(), computeHashes: shared.BoolInt$outboundSchema.optional(), ingestNonMatches: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listcontent.ts b/src/sdk/models/operations/listcontent.ts index 13bbdfee..0e88d78b 100644 --- a/src/sdk/models/operations/listcontent.ts +++ b/src/sdk/models/operations/listcontent.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListContentGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListContentRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * This is a complex query built of several parameters. See [API Info section](#section/API-Info/Media-Queries) for information on building media queries */ @@ -129,43 +137,45 @@ export const ListContentGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListContentGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -174,28 +184,29 @@ export const ListContentGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListContentGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -236,45 +247,47 @@ export const ListContentRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), mediaQuery: shared.MediaQuery$inboundSchema.optional(), sectionId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListContentRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; mediaQuery?: shared.MediaQuery$Outbound | undefined; sectionId: string; }; @@ -285,30 +298,31 @@ export const ListContentRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListContentRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), mediaQuery: shared.MediaQuery$outboundSchema.optional(), sectionId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listdownloadqueueitems.ts b/src/sdk/models/operations/listdownloadqueueitems.ts index 90e955d5..cb049324 100644 --- a/src/sdk/models/operations/listdownloadqueueitems.ts +++ b/src/sdk/models/operations/listdownloadqueueitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListDownloadQueueItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListDownloadQueueItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The queue id */ @@ -235,43 +243,45 @@ export const ListDownloadQueueItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListDownloadQueueItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -280,28 +290,29 @@ export const ListDownloadQueueItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListDownloadQueueItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -344,44 +355,46 @@ export const ListDownloadQueueItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), queueId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListDownloadQueueItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; queueId: number; }; @@ -391,29 +404,30 @@ export const ListDownloadQueueItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListDownloadQueueItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), queueId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listhubs.ts b/src/sdk/models/operations/listhubs.ts index 49ee37ef..52e1b01a 100644 --- a/src/sdk/models/operations/listhubs.ts +++ b/src/sdk/models/operations/listhubs.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type ListHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section ID for the hubs to reorder */ @@ -235,43 +244,45 @@ export const ListHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -280,28 +291,29 @@ export const ListHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -340,45 +352,47 @@ export const ListHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), metadataItemId: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; metadataItemId?: number | undefined; }; @@ -389,30 +403,31 @@ export const ListHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), metadataItemId: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listlineups.ts b/src/sdk/models/operations/listlineups.ts index 2a78c5e9..a77dd48e 100644 --- a/src/sdk/models/operations/listlineups.ts +++ b/src/sdk/models/operations/listlineups.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListLineupsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListLineupsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * 3 letter country code */ @@ -133,43 +141,45 @@ export const ListLineupsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListLineupsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -178,28 +188,29 @@ export const ListLineupsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListLineupsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -240,46 +251,48 @@ export const ListLineupsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), country: z.string(), epgId: z.string(), region: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListLineupsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; country: string; epgId: string; region: string; @@ -291,31 +304,32 @@ export const ListLineupsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListLineupsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), country: z.string(), epgId: z.string(), region: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listmatches.ts b/src/sdk/models/operations/listmatches.ts index fc8278c5..dfa0bd70 100644 --- a/src/sdk/models/operations/listmatches.ts +++ b/src/sdk/models/operations/listmatches.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListMatchesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListMatchesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; title?: string | undefined; parentTitle?: string | undefined; @@ -127,43 +135,45 @@ export const ListMatchesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListMatchesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +182,29 @@ export const ListMatchesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListMatchesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,16 +245,17 @@ export const ListMatchesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), title: z.string().optional(), parentTitle: z.string().optional(), @@ -253,31 +265,32 @@ export const ListMatchesRequest$inboundSchema: z.ZodType< manual: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListMatchesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; title?: string | undefined; parentTitle?: string | undefined; @@ -293,16 +306,17 @@ export const ListMatchesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListMatchesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), title: z.string().optional(), parentTitle: z.string().optional(), @@ -312,16 +326,16 @@ export const ListMatchesRequest$outboundSchema: z.ZodType< manual: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listmoments.ts b/src/sdk/models/operations/listmoments.ts index ccf8108d..754e9f00 100644 --- a/src/sdk/models/operations/listmoments.ts +++ b/src/sdk/models/operations/listmoments.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListMomentsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListMomentsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -124,43 +132,45 @@ export const ListMomentsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListMomentsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const ListMomentsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListMomentsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const ListMomentsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListMomentsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -278,29 +291,30 @@ export const ListMomentsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListMomentsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listpersonmedia.ts b/src/sdk/models/operations/listpersonmedia.ts index bba8738b..aa5f38ca 100644 --- a/src/sdk/models/operations/listpersonmedia.ts +++ b/src/sdk/models/operations/listpersonmedia.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListPersonMediaGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListPersonMediaRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Either the PMS tag `id` of the person or `tagKey` of the actor. Note the `tagKey` is the hex portion of the plex guid for the actor */ @@ -124,43 +132,45 @@ export const ListPersonMediaGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListPersonMediaGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const ListPersonMediaGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListPersonMediaGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,44 +242,46 @@ export const ListPersonMediaRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), personId: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListPersonMediaRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; personId: string; }; @@ -278,29 +291,30 @@ export const ListPersonMediaRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListPersonMediaRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), personId: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listplaybackhistory.ts b/src/sdk/models/operations/listplaybackhistory.ts index 216f7936..dc36716c 100644 --- a/src/sdk/models/operations/listplaybackhistory.ts +++ b/src/sdk/models/operations/listplaybackhistory.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type ListPlaybackHistoryGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListPlaybackHistoryRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The account id to restrict view history */ @@ -219,43 +228,45 @@ export const ListPlaybackHistoryGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListPlaybackHistoryGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -264,28 +275,29 @@ export const ListPlaybackHistoryGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListPlaybackHistoryGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -326,16 +338,17 @@ export const ListPlaybackHistoryRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), accountID: z.number().int().optional(), viewedAt: z.number().int().optional(), librarySectionID: z.number().int().optional(), @@ -343,31 +356,32 @@ export const ListPlaybackHistoryRequest$inboundSchema: z.ZodType< sort: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListPlaybackHistoryRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; accountID?: number | undefined; viewedAt?: number | undefined; librarySectionID?: number | undefined; @@ -381,16 +395,17 @@ export const ListPlaybackHistoryRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListPlaybackHistoryRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), accountID: z.number().int().optional(), viewedAt: z.number().int().optional(), librarySectionID: z.number().int().optional(), @@ -398,16 +413,16 @@ export const ListPlaybackHistoryRequest$outboundSchema: z.ZodType< sort: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listplaylists.ts b/src/sdk/models/operations/listplaylists.ts index 2c1274f8..f08406ea 100644 --- a/src/sdk/models/operations/listplaylists.ts +++ b/src/sdk/models/operations/listplaylists.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListPlaylistsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -62,46 +66,50 @@ export enum PlaylistType { } export type ListPlaylistsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Limit to a type of playlist */ @@ -140,43 +148,45 @@ export const ListPlaylistsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListPlaylistsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -185,28 +195,29 @@ export const ListPlaylistsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListPlaylistsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -266,45 +277,47 @@ export const ListPlaylistsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistType: PlaylistType$inboundSchema.optional(), smart: z.boolean().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListPlaylistsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistType?: string | undefined; smart?: boolean | undefined; }; @@ -315,30 +328,31 @@ export const ListPlaylistsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListPlaylistsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistType: PlaylistType$outboundSchema.optional(), smart: z.boolean().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listsimilar.ts b/src/sdk/models/operations/listsimilar.ts index 02d4631c..7a594ae2 100644 --- a/src/sdk/models/operations/listsimilar.ts +++ b/src/sdk/models/operations/listsimilar.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListSimilarGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListSimilarRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; /** * Limit results to count items @@ -125,43 +133,45 @@ export const ListSimilarGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListSimilarGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const ListSimilarGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListSimilarGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,45 +243,47 @@ export const ListSimilarRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), count: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListSimilarRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; count?: number | undefined; }; @@ -281,30 +294,31 @@ export const ListSimilarRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListSimilarRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), count: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listsonicallysimilar.ts b/src/sdk/models/operations/listsonicallysimilar.ts index 7e1f1c66..e547673f 100644 --- a/src/sdk/models/operations/listsonicallysimilar.ts +++ b/src/sdk/models/operations/listsonicallysimilar.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ListSonicallySimilarGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListSonicallySimilarRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; excludeParentID?: number | undefined; excludeGrandparentID?: number | undefined; @@ -125,43 +133,45 @@ export const ListSonicallySimilarGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListSonicallySimilarGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -170,28 +180,29 @@ export const ListSonicallySimilarGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListSonicallySimilarGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,16 +245,17 @@ export const ListSonicallySimilarRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), excludeParentID: z.number().int().optional(), excludeGrandparentID: z.number().int().optional(), @@ -251,31 +263,32 @@ export const ListSonicallySimilarRequest$inboundSchema: z.ZodType< maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListSonicallySimilarRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; excludeParentID?: number | undefined; excludeGrandparentID?: number | undefined; @@ -289,16 +302,17 @@ export const ListSonicallySimilarRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListSonicallySimilarRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), excludeParentID: z.number().int().optional(), excludeGrandparentID: z.number().int().optional(), @@ -306,16 +320,16 @@ export const ListSonicallySimilarRequest$outboundSchema: z.ZodType< maxDistance: z.number().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/listtopusers.ts b/src/sdk/models/operations/listtopusers.ts index 0069aa6e..65421805 100644 --- a/src/sdk/models/operations/listtopusers.ts +++ b/src/sdk/models/operations/listtopusers.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type ListTopUsersGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ListTopUsersRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; }; @@ -157,43 +166,45 @@ export const ListTopUsersGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListTopUsersGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -202,28 +213,29 @@ export const ListTopUsersGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ListTopUsersGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -264,44 +276,46 @@ export const ListTopUsersRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ListTopUsersRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; }; @@ -311,29 +325,30 @@ export const ListTopUsersRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListTopUsersRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/makedecision.ts b/src/sdk/models/operations/makedecision.ts index a07369cf..73097640 100644 --- a/src/sdk/models/operations/makedecision.ts +++ b/src/sdk/models/operations/makedecision.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type MakeDecisionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -88,46 +92,50 @@ export enum MakeDecisionSubtitles { } export type MakeDecisionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Type of transcode media */ @@ -285,43 +293,45 @@ export const MakeDecisionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MakeDecisionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -330,28 +340,29 @@ export const MakeDecisionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, MakeDecisionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -455,16 +466,17 @@ export const MakeDecisionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), transcodeType: shared.TranscodeType$inboundSchema, transcodeSessionId: z.string().optional(), advancedSubtitles: shared.AdvancedSubtitles$inboundSchema.optional(), @@ -498,16 +510,16 @@ export const MakeDecisionRequest$inboundSchema: z.ZodType< "X-Plex-Session-Identifier": z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", "X-Plex-Client-Profile-Extra": "xPlexClientProfileExtra", "X-Plex-Client-Profile-Name": "xPlexClientProfileName", "X-Plex-Session-Identifier": "xPlexSessionIdentifier", @@ -516,16 +528,17 @@ export const MakeDecisionRequest$inboundSchema: z.ZodType< /** @internal */ export type MakeDecisionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; transcodeType: string; transcodeSessionId?: string | undefined; advancedSubtitles?: string | undefined; @@ -565,16 +578,17 @@ export const MakeDecisionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, MakeDecisionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), transcodeType: shared.TranscodeType$outboundSchema, transcodeSessionId: z.string().optional(), advancedSubtitles: shared.AdvancedSubtitles$outboundSchema.optional(), @@ -608,16 +622,16 @@ export const MakeDecisionRequest$outboundSchema: z.ZodType< xPlexSessionIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", xPlexClientProfileExtra: "X-Plex-Client-Profile-Extra", xPlexClientProfileName: "X-Plex-Client-Profile-Name", xPlexSessionIdentifier: "X-Plex-Session-Identifier", diff --git a/src/sdk/models/operations/markplayed.ts b/src/sdk/models/operations/markplayed.ts index ce3a834b..af1151d6 100644 --- a/src/sdk/models/operations/markplayed.ts +++ b/src/sdk/models/operations/markplayed.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type MarkPlayedGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type MarkPlayedRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The identifier of the media provider containing the media to rate. Typically `com.plexapp.plugins.library` */ @@ -127,43 +136,45 @@ export const MarkPlayedGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MarkPlayedGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +183,29 @@ export const MarkPlayedGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, MarkPlayedGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,46 +246,48 @@ export const MarkPlayedRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), identifier: z.string(), key: z.string().optional(), uri: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MarkPlayedRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; identifier: string; key?: string | undefined; uri?: string | undefined; @@ -285,31 +299,32 @@ export const MarkPlayedRequest$outboundSchema: z.ZodType< z.ZodTypeDef, MarkPlayedRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), identifier: z.string(), key: z.string().optional(), uri: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/matchitem.ts b/src/sdk/models/operations/matchitem.ts index 9b0d36c8..a66a37ea 100644 --- a/src/sdk/models/operations/matchitem.ts +++ b/src/sdk/models/operations/matchitem.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type MatchItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type MatchItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; guid?: string | undefined; name?: string | undefined; @@ -119,43 +128,45 @@ export const MatchItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MatchItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const MatchItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, MatchItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,47 +238,49 @@ export const MatchItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), guid: z.string().optional(), name: z.string().optional(), year: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MatchItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; guid?: string | undefined; name?: string | undefined; @@ -279,32 +293,33 @@ export const MatchItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, MatchItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), guid: z.string().optional(), name: z.string().optional(), year: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/mergeitems.ts b/src/sdk/models/operations/mergeitems.ts index 2cd0c2c5..cc0b2265 100644 --- a/src/sdk/models/operations/mergeitems.ts +++ b/src/sdk/models/operations/mergeitems.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type MergeItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type MergeItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; idsPathParameter: string; idsQueryParameter?: Array | undefined; }; @@ -117,43 +126,45 @@ export const MergeItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MergeItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -162,28 +173,29 @@ export const MergeItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, MergeItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -224,45 +236,47 @@ export const MergeItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), idsPathParameter: z.string(), idsQueryParameter: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MergeItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; idsPathParameter: string; idsQueryParameter?: Array | undefined; }; @@ -273,30 +287,31 @@ export const MergeItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, MergeItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), idsPathParameter: z.string(), idsQueryParameter: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/modifydevice.ts b/src/sdk/models/operations/modifydevice.ts index c77cc0c8..064c7394 100644 --- a/src/sdk/models/operations/modifydevice.ts +++ b/src/sdk/models/operations/modifydevice.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ModifyDeviceGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ModifyDeviceRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -162,43 +170,45 @@ export const ModifyDeviceGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ModifyDeviceGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -207,28 +217,29 @@ export const ModifyDeviceGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ModifyDeviceGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -269,45 +280,47 @@ export const ModifyDeviceRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), enabled: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ModifyDeviceRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; enabled?: number | undefined; }; @@ -318,30 +331,31 @@ export const ModifyDeviceRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ModifyDeviceRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), enabled: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/modifyplaylistgenerator.ts b/src/sdk/models/operations/modifyplaylistgenerator.ts index bf592248..846551c7 100644 --- a/src/sdk/models/operations/modifyplaylistgenerator.ts +++ b/src/sdk/models/operations/modifyplaylistgenerator.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ModifyPlaylistGeneratorGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ModifyPlaylistGeneratorLocation = { @@ -85,46 +89,50 @@ export type ModifyPlaylistGeneratorItem = { }; export type ModifyPlaylistGeneratorRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -170,43 +178,45 @@ export const ModifyPlaylistGeneratorGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ModifyPlaylistGeneratorGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -215,28 +225,29 @@ export const ModifyPlaylistGeneratorGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ModifyPlaylistGeneratorGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -504,47 +515,49 @@ export const ModifyPlaylistGeneratorRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), Item: z.lazy(() => ModifyPlaylistGeneratorItem$inboundSchema).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", "Item": "item", }); }); /** @internal */ export type ModifyPlaylistGeneratorRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; generatorId: number; Item?: ModifyPlaylistGeneratorItem$Outbound | undefined; @@ -556,31 +569,32 @@ export const ModifyPlaylistGeneratorRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ModifyPlaylistGeneratorRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), item: z.lazy(() => ModifyPlaylistGeneratorItem$outboundSchema).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", item: "Item", }); }); diff --git a/src/sdk/models/operations/movecollectionitem.ts b/src/sdk/models/operations/movecollectionitem.ts index e55808e9..c4bbdaea 100644 --- a/src/sdk/models/operations/movecollectionitem.ts +++ b/src/sdk/models/operations/movecollectionitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type MoveCollectionItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type MoveCollectionItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The collection id */ @@ -132,43 +140,45 @@ export const MoveCollectionItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MoveCollectionItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -177,28 +187,29 @@ export const MoveCollectionItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, MoveCollectionItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -239,46 +250,48 @@ export const MoveCollectionItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), collectionId: z.number().int(), itemId: z.number().int(), after: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MoveCollectionItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; collectionId: number; itemId: number; after?: number | undefined; @@ -290,31 +303,32 @@ export const MoveCollectionItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, MoveCollectionItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), collectionId: z.number().int(), itemId: z.number().int(), after: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/movehub.ts b/src/sdk/models/operations/movehub.ts index 0b59af3e..2c572faf 100644 --- a/src/sdk/models/operations/movehub.ts +++ b/src/sdk/models/operations/movehub.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type MoveHubGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type MoveHubRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section ID for the hubs to reorder */ @@ -133,43 +141,45 @@ export const MoveHubGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MoveHubGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -178,28 +188,29 @@ export const MoveHubGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, MoveHubGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -236,46 +247,48 @@ export const MoveHubRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), identifier: z.string(), after: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MoveHubRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; identifier: string; after?: string | undefined; @@ -287,31 +300,32 @@ export const MoveHubRequest$outboundSchema: z.ZodType< z.ZodTypeDef, MoveHubRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), identifier: z.string(), after: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/moveplaylistitem.ts b/src/sdk/models/operations/moveplaylistitem.ts index c5285de4..f82fedb4 100644 --- a/src/sdk/models/operations/moveplaylistitem.ts +++ b/src/sdk/models/operations/moveplaylistitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type MovePlaylistItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type MovePlaylistItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -134,43 +142,45 @@ export const MovePlaylistItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MovePlaylistItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -179,28 +189,29 @@ export const MovePlaylistItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, MovePlaylistItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -241,46 +252,48 @@ export const MovePlaylistItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), playlistItemId: z.number().int(), after: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MovePlaylistItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; playlistItemId: number; after?: number | undefined; @@ -292,31 +305,32 @@ export const MovePlaylistItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, MovePlaylistItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), playlistItemId: z.number().int(), after: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/moveplayqueueitem.ts b/src/sdk/models/operations/moveplayqueueitem.ts index a62f5a9c..d17acb81 100644 --- a/src/sdk/models/operations/moveplayqueueitem.ts +++ b/src/sdk/models/operations/moveplayqueueitem.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type MovePlayQueueItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type MovePlayQueueItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the play queue. */ @@ -134,43 +142,45 @@ export const MovePlayQueueItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MovePlayQueueItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -179,28 +189,29 @@ export const MovePlayQueueItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, MovePlayQueueItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -241,46 +252,48 @@ export const MovePlayQueueItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playQueueId: z.number().int(), playQueueItemId: z.number().int(), after: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type MovePlayQueueItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playQueueId: number; playQueueItemId: number; after?: number | undefined; @@ -292,31 +305,32 @@ export const MovePlayQueueItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, MovePlayQueueItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playQueueId: z.number().int(), playQueueItemId: z.number().int(), after: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/optimizedatabase.ts b/src/sdk/models/operations/optimizedatabase.ts index 26701afc..2024647d 100644 --- a/src/sdk/models/operations/optimizedatabase.ts +++ b/src/sdk/models/operations/optimizedatabase.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type OptimizeDatabaseGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type OptimizeDatabaseRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * If set, don't wait for completion but return an activity */ @@ -120,43 +128,45 @@ export const OptimizeDatabaseGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type OptimizeDatabaseGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -165,28 +175,29 @@ export const OptimizeDatabaseGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, OptimizeDatabaseGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -227,44 +238,46 @@ export const OptimizeDatabaseRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), async: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type OptimizeDatabaseRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; async?: number | undefined; }; @@ -274,29 +287,30 @@ export const OptimizeDatabaseRequest$outboundSchema: z.ZodType< z.ZodTypeDef, OptimizeDatabaseRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), async: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/refreshitemsmetadata.ts b/src/sdk/models/operations/refreshitemsmetadata.ts index a8ab3f98..e696a357 100644 --- a/src/sdk/models/operations/refreshitemsmetadata.ts +++ b/src/sdk/models/operations/refreshitemsmetadata.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type RefreshItemsMetadataGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type RefreshItemsMetadataRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; agent?: string | undefined; markUpdated?: shared.BoolInt | undefined; @@ -119,43 +127,45 @@ export const RefreshItemsMetadataGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RefreshItemsMetadataGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +174,29 @@ export const RefreshItemsMetadataGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshItemsMetadataGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -228,46 +239,48 @@ export const RefreshItemsMetadataRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), agent: z.string().optional(), markUpdated: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RefreshItemsMetadataRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; agent?: string | undefined; markUpdated?: number | undefined; @@ -279,31 +292,32 @@ export const RefreshItemsMetadataRequest$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshItemsMetadataRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), agent: z.string().optional(), markUpdated: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/refreshplaylist.ts b/src/sdk/models/operations/refreshplaylist.ts index 6041517e..7ce59d93 100644 --- a/src/sdk/models/operations/refreshplaylist.ts +++ b/src/sdk/models/operations/refreshplaylist.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type RefreshPlaylistGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -61,46 +66,50 @@ export enum Action { } export type RefreshPlaylistRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -140,43 +149,45 @@ export const RefreshPlaylistGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RefreshPlaylistGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -185,28 +196,29 @@ export const RefreshPlaylistGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshPlaylistGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -266,47 +278,49 @@ export const RefreshPlaylistRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), metadataId: z.number().int(), action: Action$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RefreshPlaylistRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; generatorId: number; metadataId: number; @@ -319,32 +333,33 @@ export const RefreshPlaylistRequest$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshPlaylistRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), generatorId: z.number().int(), metadataId: z.number().int(), action: Action$outboundSchema, }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/refreshsection.ts b/src/sdk/models/operations/refreshsection.ts index bf90e053..467ab298 100644 --- a/src/sdk/models/operations/refreshsection.ts +++ b/src/sdk/models/operations/refreshsection.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type RefreshSectionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type RefreshSectionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -128,43 +136,45 @@ export const RefreshSectionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RefreshSectionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -173,28 +183,29 @@ export const RefreshSectionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshSectionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -235,46 +246,48 @@ export const RefreshSectionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), force: shared.BoolInt$inboundSchema.optional(), path: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RefreshSectionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; force?: number | undefined; path?: string | undefined; @@ -286,31 +299,32 @@ export const RefreshSectionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshSectionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), force: shared.BoolInt$outboundSchema.optional(), path: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/refreshsectionsmetadata.ts b/src/sdk/models/operations/refreshsectionsmetadata.ts index 1898658d..f475c16b 100644 --- a/src/sdk/models/operations/refreshsectionsmetadata.ts +++ b/src/sdk/models/operations/refreshsectionsmetadata.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type RefreshSectionsMetadataGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type RefreshSectionsMetadataRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Force refresh of metadata */ @@ -119,43 +128,45 @@ export const RefreshSectionsMetadataGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RefreshSectionsMetadataGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const RefreshSectionsMetadataGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshSectionsMetadataGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -228,44 +240,46 @@ export const RefreshSectionsMetadataRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), force: z.boolean().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RefreshSectionsMetadataRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; force?: boolean | undefined; }; @@ -275,29 +289,30 @@ export const RefreshSectionsMetadataRequest$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshSectionsMetadataRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), force: z.boolean().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/reloadguide.ts b/src/sdk/models/operations/reloadguide.ts index a97684ee..f4ed80b0 100644 --- a/src/sdk/models/operations/reloadguide.ts +++ b/src/sdk/models/operations/reloadguide.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type ReloadGuideGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ReloadGuideRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -120,43 +129,45 @@ export const ReloadGuideGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ReloadGuideGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -165,28 +176,29 @@ export const ReloadGuideGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ReloadGuideGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -227,44 +239,46 @@ export const ReloadGuideRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ReloadGuideRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; }; @@ -274,29 +288,30 @@ export const ReloadGuideRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ReloadGuideRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/removedevice.ts b/src/sdk/models/operations/removedevice.ts index c4926c5f..f669e1f6 100644 --- a/src/sdk/models/operations/removedevice.ts +++ b/src/sdk/models/operations/removedevice.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type RemoveDeviceGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type RemoveDeviceRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -157,43 +166,45 @@ export const RemoveDeviceGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RemoveDeviceGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -202,28 +213,29 @@ export const RemoveDeviceGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveDeviceGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -264,44 +276,46 @@ export const RemoveDeviceRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RemoveDeviceRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; }; @@ -311,29 +325,30 @@ export const RemoveDeviceRequest$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveDeviceRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/removedevicefromdvr.ts b/src/sdk/models/operations/removedevicefromdvr.ts index 995435e1..31d18077 100644 --- a/src/sdk/models/operations/removedevicefromdvr.ts +++ b/src/sdk/models/operations/removedevicefromdvr.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type RemoveDeviceFromDVRGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type RemoveDeviceFromDVRRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -177,43 +185,45 @@ export const RemoveDeviceFromDVRGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RemoveDeviceFromDVRGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -222,28 +232,29 @@ export const RemoveDeviceFromDVRGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveDeviceFromDVRGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -284,45 +295,47 @@ export const RemoveDeviceFromDVRRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RemoveDeviceFromDVRRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; deviceId: number; }; @@ -333,30 +346,31 @@ export const RemoveDeviceFromDVRRequest$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveDeviceFromDVRRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/removedownloadqueueitems.ts b/src/sdk/models/operations/removedownloadqueueitems.ts index 51679b5a..e5f5d4a1 100644 --- a/src/sdk/models/operations/removedownloadqueueitems.ts +++ b/src/sdk/models/operations/removedownloadqueueitems.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type RemoveDownloadQueueItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type RemoveDownloadQueueItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The queue id */ @@ -123,43 +132,45 @@ export const RemoveDownloadQueueItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RemoveDownloadQueueItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +179,29 @@ export const RemoveDownloadQueueItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveDownloadQueueItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,45 +244,47 @@ export const RemoveDownloadQueueItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.array(z.number().int()), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RemoveDownloadQueueItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; queueId: number; itemId: Array; }; @@ -281,30 +295,31 @@ export const RemoveDownloadQueueItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveDownloadQueueItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.array(z.number().int()), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/reordersubscription.ts b/src/sdk/models/operations/reordersubscription.ts index 2fe25596..23eeee18 100644 --- a/src/sdk/models/operations/reordersubscription.ts +++ b/src/sdk/models/operations/reordersubscription.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ReorderSubscriptionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ReorderSubscriptionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; subscriptionId: number; /** * The subscription to move this sub after. If missing will insert at the beginning of the list @@ -127,43 +135,45 @@ export const ReorderSubscriptionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ReorderSubscriptionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +182,29 @@ export const ReorderSubscriptionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ReorderSubscriptionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,45 +245,47 @@ export const ReorderSubscriptionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), subscriptionId: z.number().int(), after: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ReorderSubscriptionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; subscriptionId: number; after?: number | undefined; }; @@ -283,30 +296,31 @@ export const ReorderSubscriptionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ReorderSubscriptionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), subscriptionId: z.number().int(), after: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/report.ts b/src/sdk/models/operations/report.ts index c7305803..010e72b5 100644 --- a/src/sdk/models/operations/report.ts +++ b/src/sdk/models/operations/report.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ReportGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -63,46 +67,50 @@ export enum ReportState { } export type ReportRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The details key for the item. */ @@ -312,43 +320,45 @@ export const ReportGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ReportGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -357,28 +367,29 @@ export const ReportGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ReportGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -434,16 +445,17 @@ export const ReportRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), key: z.string().optional(), ratingKey: z.string().optional(), state: ReportState$inboundSchema.optional(), @@ -461,32 +473,33 @@ export const ReportRequest$inboundSchema: z.ZodType< "X-Plex-Session-Identifier": z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", "X-Plex-Session-Identifier": "xPlexSessionIdentifier", }); }); /** @internal */ export type ReportRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; key?: string | undefined; ratingKey?: string | undefined; state?: string | undefined; @@ -510,16 +523,17 @@ export const ReportRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ReportRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), key: z.string().optional(), ratingKey: z.string().optional(), state: ReportState$outboundSchema.optional(), @@ -537,16 +551,16 @@ export const ReportRequest$outboundSchema: z.ZodType< xPlexSessionIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", xPlexSessionIdentifier: "X-Plex-Session-Identifier", }); }); diff --git a/src/sdk/models/operations/resetplayqueue.ts b/src/sdk/models/operations/resetplayqueue.ts index 4b1b86fe..4b4cdcb6 100644 --- a/src/sdk/models/operations/resetplayqueue.ts +++ b/src/sdk/models/operations/resetplayqueue.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ResetPlayQueueGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ResetPlayQueueRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the play queue. */ @@ -126,43 +134,45 @@ export const ResetPlayQueueGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ResetPlayQueueGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -171,28 +181,29 @@ export const ResetPlayQueueGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ResetPlayQueueGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -233,44 +244,46 @@ export const ResetPlayQueueRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playQueueId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ResetPlayQueueRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playQueueId: number; }; @@ -280,29 +293,30 @@ export const ResetPlayQueueRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ResetPlayQueueRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playQueueId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/resetsectiondefaults.ts b/src/sdk/models/operations/resetsectiondefaults.ts index e6353372..aa7b8a9c 100644 --- a/src/sdk/models/operations/resetsectiondefaults.ts +++ b/src/sdk/models/operations/resetsectiondefaults.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type ResetSectionDefaultsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ResetSectionDefaultsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section ID for the hubs to reorder */ @@ -119,43 +128,45 @@ export const ResetSectionDefaultsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ResetSectionDefaultsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const ResetSectionDefaultsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ResetSectionDefaultsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -228,44 +240,46 @@ export const ResetSectionDefaultsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ResetSectionDefaultsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -275,29 +289,30 @@ export const ResetSectionDefaultsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ResetSectionDefaultsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts b/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts index 1411deb7..cfc209a4 100644 --- a/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts +++ b/src/sdk/models/operations/restartprocessingdownloadqueueitems.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type RestartProcessingDownloadQueueItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type RestartProcessingDownloadQueueItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The queue id */ @@ -121,43 +130,47 @@ export type RestartProcessingDownloadQueueItemsResponse = { export const RestartProcessingDownloadQueueItemsGlobals$inboundSchema: z.ZodType = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default( + shared.Accepts.ApplicationXml, + ), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RestartProcessingDownloadQueueItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -167,28 +180,31 @@ export const RestartProcessingDownloadQueueItemsGlobals$outboundSchema: z.ZodTypeDef, RestartProcessingDownloadQueueItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default( + shared.Accepts.ApplicationXml, + ), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -238,45 +254,49 @@ export function restartProcessingDownloadQueueItemsGlobalsFromJSON( export const RestartProcessingDownloadQueueItemsRequest$inboundSchema: z.ZodType = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default( + shared.Accepts.ApplicationXml, + ), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.array(z.number().int()), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type RestartProcessingDownloadQueueItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; queueId: number; itemId: Array; }; @@ -288,30 +308,33 @@ export const RestartProcessingDownloadQueueItemsRequest$outboundSchema: z.ZodTypeDef, RestartProcessingDownloadQueueItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default( + shared.Accepts.ApplicationXml, + ), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), queueId: z.number().int(), itemId: z.array(z.number().int()), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/scan.ts b/src/sdk/models/operations/scan.ts index d25ea7a7..7d6c3a92 100644 --- a/src/sdk/models/operations/scan.ts +++ b/src/sdk/models/operations/scan.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ScanGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ScanRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -129,43 +137,45 @@ export const ScanGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ScanGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -174,28 +184,29 @@ export const ScanGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ScanGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,45 +243,47 @@ export const ScanRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), source: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ScanRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; source?: string | undefined; }; @@ -281,30 +294,31 @@ export const ScanRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ScanRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), source: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/searchhubs.ts b/src/sdk/models/operations/searchhubs.ts index dcbb0f0c..9751df03 100644 --- a/src/sdk/models/operations/searchhubs.ts +++ b/src/sdk/models/operations/searchhubs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type SearchHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SearchHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The query term */ @@ -165,43 +173,45 @@ export const SearchHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SearchHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -210,28 +220,29 @@ export const SearchHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SearchHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -272,46 +283,48 @@ export const SearchHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), query: z.string(), sectionId: z.number().int().optional(), limit: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SearchHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; query: string; sectionId?: number | undefined; limit?: number | undefined; @@ -323,31 +336,32 @@ export const SearchHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SearchHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), query: z.string(), sectionId: z.number().int().optional(), limit: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setchannelmap.ts b/src/sdk/models/operations/setchannelmap.ts index 7246fd00..81600c8b 100644 --- a/src/sdk/models/operations/setchannelmap.ts +++ b/src/sdk/models/operations/setchannelmap.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type SetChannelmapGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -63,46 +67,50 @@ export type SetChannelmapChannelMapping = {}; export type ChannelMappingByKey = {}; export type SetChannelmapRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -146,43 +154,45 @@ export const SetChannelmapGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetChannelmapGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -191,28 +201,29 @@ export const SetChannelmapGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetChannelmapGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -351,16 +362,17 @@ export const SetChannelmapRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), channelMapping: z.lazy(() => SetChannelmapChannelMapping$inboundSchema) .optional(), @@ -369,31 +381,32 @@ export const SetChannelmapRequest$inboundSchema: z.ZodType< channelsEnabled: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetChannelmapRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; channelMapping?: SetChannelmapChannelMapping$Outbound | undefined; channelMappingByKey?: ChannelMappingByKey$Outbound | undefined; @@ -406,16 +419,17 @@ export const SetChannelmapRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetChannelmapRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), channelMapping: z.lazy(() => SetChannelmapChannelMapping$outboundSchema) .optional(), @@ -424,16 +438,16 @@ export const SetChannelmapRequest$outboundSchema: z.ZodType< channelsEnabled: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setdevicepreferences.ts b/src/sdk/models/operations/setdevicepreferences.ts index 0c8d52af..360e710b 100644 --- a/src/sdk/models/operations/setdevicepreferences.ts +++ b/src/sdk/models/operations/setdevicepreferences.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type SetDevicePreferencesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SetDevicePreferencesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -123,43 +132,45 @@ export const SetDevicePreferencesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetDevicePreferencesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +179,29 @@ export const SetDevicePreferencesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetDevicePreferencesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -232,45 +244,47 @@ export const SetDevicePreferencesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), name: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetDevicePreferencesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; name?: string | undefined; }; @@ -281,30 +295,31 @@ export const SetDevicePreferencesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetDevicePreferencesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), name: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setdvrpreferences.ts b/src/sdk/models/operations/setdvrpreferences.ts index 7b270e79..d3367097 100644 --- a/src/sdk/models/operations/setdvrpreferences.ts +++ b/src/sdk/models/operations/setdvrpreferences.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type SetDVRPreferencesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SetDVRPreferencesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -177,43 +185,45 @@ export const SetDVRPreferencesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetDVRPreferencesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -222,28 +232,29 @@ export const SetDVRPreferencesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetDVRPreferencesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -284,45 +295,47 @@ export const SetDVRPreferencesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), name: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetDVRPreferencesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; name?: string | undefined; }; @@ -333,30 +346,31 @@ export const SetDVRPreferencesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetDVRPreferencesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), name: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setitemartwork.ts b/src/sdk/models/operations/setitemartwork.ts index 5562a943..8c9662a9 100644 --- a/src/sdk/models/operations/setitemartwork.ts +++ b/src/sdk/models/operations/setitemartwork.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type SetItemArtworkGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export enum SetItemArtworkElement { @@ -61,46 +66,50 @@ export enum SetItemArtworkElement { } export type SetItemArtworkRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; element: SetItemArtworkElement; /** @@ -130,43 +139,45 @@ export const SetItemArtworkGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetItemArtworkGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -175,28 +186,29 @@ export const SetItemArtworkGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetItemArtworkGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -258,46 +270,48 @@ export const SetItemArtworkRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), element: SetItemArtworkElement$inboundSchema, url: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetItemArtworkRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; element: string; url?: string | undefined; @@ -309,31 +323,32 @@ export const SetItemArtworkRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetItemArtworkRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), element: SetItemArtworkElement$outboundSchema, url: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setitempreferences.ts b/src/sdk/models/operations/setitempreferences.ts index 1079195d..e08d9976 100644 --- a/src/sdk/models/operations/setitempreferences.ts +++ b/src/sdk/models/operations/setitempreferences.ts @@ -7,93 +7,102 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type SetItemPreferencesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SetItemPreferencesArgs = {}; export type SetItemPreferencesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; args?: SetItemPreferencesArgs | undefined; }; @@ -119,43 +128,45 @@ export const SetItemPreferencesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetItemPreferencesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const SetItemPreferencesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetItemPreferencesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -274,45 +286,47 @@ export const SetItemPreferencesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), args: z.lazy(() => SetItemPreferencesArgs$inboundSchema).optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetItemPreferencesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; args?: SetItemPreferencesArgs$Outbound | undefined; }; @@ -323,30 +337,31 @@ export const SetItemPreferencesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetItemPreferencesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), args: z.lazy(() => SetItemPreferencesArgs$outboundSchema).optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setpreferences.ts b/src/sdk/models/operations/setpreferences.ts index 6632d26a..4a052ab2 100644 --- a/src/sdk/models/operations/setpreferences.ts +++ b/src/sdk/models/operations/setpreferences.ts @@ -7,93 +7,102 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type SetPreferencesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SetPreferencesPrefs = {}; export type SetPreferencesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; prefs: SetPreferencesPrefs; }; @@ -118,43 +127,45 @@ export const SetPreferencesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetPreferencesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -163,28 +174,29 @@ export const SetPreferencesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetPreferencesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -273,44 +285,46 @@ export const SetPreferencesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), prefs: z.lazy(() => SetPreferencesPrefs$inboundSchema), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetPreferencesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; prefs: SetPreferencesPrefs$Outbound; }; @@ -320,29 +334,30 @@ export const SetPreferencesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetPreferencesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), prefs: z.lazy(() => SetPreferencesPrefs$outboundSchema), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setrating.ts b/src/sdk/models/operations/setrating.ts index 17e68d24..52d83014 100644 --- a/src/sdk/models/operations/setrating.ts +++ b/src/sdk/models/operations/setrating.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type SetRatingGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SetRatingRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The identifier of the media provider containing the media to rate. Typically `com.plexapp.plugins.library` */ @@ -131,43 +140,45 @@ export const SetRatingGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetRatingGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -176,28 +187,29 @@ export const SetRatingGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetRatingGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -238,47 +250,49 @@ export const SetRatingRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), identifier: z.string(), key: z.string(), rating: z.number(), ratedAt: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetRatingRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; identifier: string; key: string; rating: number; @@ -291,32 +305,33 @@ export const SetRatingRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetRatingRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), identifier: z.string(), key: z.string(), rating: z.number(), ratedAt: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setsectionpreferences.ts b/src/sdk/models/operations/setsectionpreferences.ts index ada89e99..cac81dce 100644 --- a/src/sdk/models/operations/setsectionpreferences.ts +++ b/src/sdk/models/operations/setsectionpreferences.ts @@ -7,93 +7,102 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type SetSectionPreferencesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SetSectionPreferencesPrefs = {}; export type SetSectionPreferencesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -122,43 +131,45 @@ export const SetSectionPreferencesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetSectionPreferencesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -167,28 +178,29 @@ export const SetSectionPreferencesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetSectionPreferencesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -279,45 +291,47 @@ export const SetSectionPreferencesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), prefs: z.lazy(() => SetSectionPreferencesPrefs$inboundSchema), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetSectionPreferencesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; prefs: SetSectionPreferencesPrefs$Outbound; }; @@ -328,30 +342,31 @@ export const SetSectionPreferencesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetSectionPreferencesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), prefs: z.lazy(() => SetSectionPreferencesPrefs$outboundSchema), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setstreamoffset.ts b/src/sdk/models/operations/setstreamoffset.ts index ff32daf4..d1f2265e 100644 --- a/src/sdk/models/operations/setstreamoffset.ts +++ b/src/sdk/models/operations/setstreamoffset.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type SetStreamOffsetGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SetStreamOffsetRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the stream */ @@ -127,43 +136,45 @@ export const SetStreamOffsetGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetStreamOffsetGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +183,29 @@ export const SetStreamOffsetGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetStreamOffsetGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,46 +246,48 @@ export const SetStreamOffsetRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), streamId: z.number().int(), ext: z.string(), offset: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetStreamOffsetRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; streamId: number; ext: string; offset?: number | undefined; @@ -285,31 +299,32 @@ export const SetStreamOffsetRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetStreamOffsetRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), streamId: z.number().int(), ext: z.string(), offset: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/setstreamselection.ts b/src/sdk/models/operations/setstreamselection.ts index 36652978..2702600a 100644 --- a/src/sdk/models/operations/setstreamselection.ts +++ b/src/sdk/models/operations/setstreamselection.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type SetStreamSelectionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SetStreamSelectionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the part to select streams on */ @@ -132,43 +140,45 @@ export const SetStreamSelectionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetStreamSelectionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -177,28 +187,29 @@ export const SetStreamSelectionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SetStreamSelectionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -239,47 +250,49 @@ export const SetStreamSelectionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), partId: z.number().int(), audioStreamID: z.number().int().optional(), subtitleStreamID: z.number().int().optional(), allParts: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SetStreamSelectionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; partId: number; audioStreamID?: number | undefined; subtitleStreamID?: number | undefined; @@ -292,32 +305,33 @@ export const SetStreamSelectionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SetStreamSelectionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), partId: z.number().int(), audioStreamID: z.number().int().optional(), subtitleStreamID: z.number().int().optional(), allParts: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/shuffle.ts b/src/sdk/models/operations/shuffle.ts index cfb86f57..2259b679 100644 --- a/src/sdk/models/operations/shuffle.ts +++ b/src/sdk/models/operations/shuffle.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type ShuffleGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type ShuffleRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the play queue. */ @@ -126,43 +134,45 @@ export const ShuffleGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ShuffleGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -171,28 +181,29 @@ export const ShuffleGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, ShuffleGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -229,44 +240,46 @@ export const ShuffleRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playQueueId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type ShuffleRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playQueueId: number; }; @@ -276,29 +289,30 @@ export const ShuffleRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ShuffleRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playQueueId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/splititem.ts b/src/sdk/models/operations/splititem.ts index c05e309e..c121f14e 100644 --- a/src/sdk/models/operations/splititem.ts +++ b/src/sdk/models/operations/splititem.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type SplitItemGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type SplitItemRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; }; @@ -116,43 +125,45 @@ export const SplitItemGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SplitItemGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -161,28 +172,29 @@ export const SplitItemGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, SplitItemGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -223,44 +235,46 @@ export const SplitItemRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type SplitItemRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; }; @@ -270,29 +284,30 @@ export const SplitItemRequest$outboundSchema: z.ZodType< z.ZodTypeDef, SplitItemRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/startanalysis.ts b/src/sdk/models/operations/startanalysis.ts index 9b1a6bcf..adfa0c7c 100644 --- a/src/sdk/models/operations/startanalysis.ts +++ b/src/sdk/models/operations/startanalysis.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type StartAnalysisGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type StartAnalysisRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Section identifier */ @@ -119,43 +128,45 @@ export const StartAnalysisGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StartAnalysisGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const StartAnalysisGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, StartAnalysisGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const StartAnalysisRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StartAnalysisRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; }; @@ -273,29 +287,30 @@ export const StartAnalysisRequest$outboundSchema: z.ZodType< z.ZodTypeDef, StartAnalysisRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/startbifgeneration.ts b/src/sdk/models/operations/startbifgeneration.ts index 35032e9f..f2f74704 100644 --- a/src/sdk/models/operations/startbifgeneration.ts +++ b/src/sdk/models/operations/startbifgeneration.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type StartBifGenerationGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type StartBifGenerationRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; force?: shared.BoolInt | undefined; }; @@ -118,43 +126,45 @@ export const StartBifGenerationGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StartBifGenerationGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -163,28 +173,29 @@ export const StartBifGenerationGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, StartBifGenerationGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -225,45 +236,47 @@ export const StartBifGenerationRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StartBifGenerationRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; force?: number | undefined; }; @@ -274,30 +287,31 @@ export const StartBifGenerationRequest$outboundSchema: z.ZodType< z.ZodTypeDef, StartBifGenerationRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), force: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/starttask.ts b/src/sdk/models/operations/starttask.ts index 542ed6d4..82698d85 100644 --- a/src/sdk/models/operations/starttask.ts +++ b/src/sdk/models/operations/starttask.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type StartTaskGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -80,46 +85,50 @@ export enum StartTaskTask { } export type StartTaskRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The task name */ @@ -147,43 +156,45 @@ export const StartTaskGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StartTaskGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -192,28 +203,29 @@ export const StartTaskGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, StartTaskGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -275,44 +287,46 @@ export const StartTaskRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), task: StartTaskTask$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StartTaskRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; task: string; }; @@ -322,29 +336,30 @@ export const StartTaskRequest$outboundSchema: z.ZodType< z.ZodTypeDef, StartTaskRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), task: StartTaskTask$outboundSchema, }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/starttranscodesession.ts b/src/sdk/models/operations/starttranscodesession.ts index a8e73bd2..cbaaa294 100644 --- a/src/sdk/models/operations/starttranscodesession.ts +++ b/src/sdk/models/operations/starttranscodesession.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type StartTranscodeSessionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -98,46 +102,50 @@ export enum StartTranscodeSessionSubtitles { } export type StartTranscodeSessionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Type of transcode media */ @@ -301,43 +309,45 @@ export const StartTranscodeSessionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StartTranscodeSessionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -346,28 +356,29 @@ export const StartTranscodeSessionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, StartTranscodeSessionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -492,16 +503,17 @@ export const StartTranscodeSessionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), transcodeType: shared.TranscodeType$inboundSchema, transcodeSessionId: z.string().optional(), extension: Extension$inboundSchema, @@ -536,16 +548,16 @@ export const StartTranscodeSessionRequest$inboundSchema: z.ZodType< "X-Plex-Session-Identifier": z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", "X-Plex-Client-Profile-Extra": "xPlexClientProfileExtra", "X-Plex-Client-Profile-Name": "xPlexClientProfileName", "X-Plex-Session-Identifier": "xPlexSessionIdentifier", @@ -554,16 +566,17 @@ export const StartTranscodeSessionRequest$inboundSchema: z.ZodType< /** @internal */ export type StartTranscodeSessionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; transcodeType: string; transcodeSessionId?: string | undefined; extension: string; @@ -604,16 +617,17 @@ export const StartTranscodeSessionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, StartTranscodeSessionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), transcodeType: shared.TranscodeType$outboundSchema, transcodeSessionId: z.string().optional(), extension: Extension$outboundSchema, @@ -648,16 +662,16 @@ export const StartTranscodeSessionRequest$outboundSchema: z.ZodType< xPlexSessionIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", xPlexClientProfileExtra: "X-Plex-Client-Profile-Extra", xPlexClientProfileName: "X-Plex-Client-Profile-Name", xPlexSessionIdentifier: "X-Plex-Session-Identifier", diff --git a/src/sdk/models/operations/stopdvrreload.ts b/src/sdk/models/operations/stopdvrreload.ts index eb061b6b..ab51e919 100644 --- a/src/sdk/models/operations/stopdvrreload.ts +++ b/src/sdk/models/operations/stopdvrreload.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type StopDVRReloadGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type StopDVRReloadRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -119,43 +128,45 @@ export const StopDVRReloadGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StopDVRReloadGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const StopDVRReloadGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, StopDVRReloadGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const StopDVRReloadRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StopDVRReloadRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; }; @@ -273,29 +287,30 @@ export const StopDVRReloadRequest$outboundSchema: z.ZodType< z.ZodTypeDef, StopDVRReloadRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/stopscan.ts b/src/sdk/models/operations/stopscan.ts index 26233754..ee82e4b9 100644 --- a/src/sdk/models/operations/stopscan.ts +++ b/src/sdk/models/operations/stopscan.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type StopScanGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type StopScanRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the device. */ @@ -124,43 +132,45 @@ export const StopScanGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StopScanGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const StopScanGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, StopScanGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -229,44 +240,46 @@ export const StopScanRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StopScanRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; deviceId: number; }; @@ -276,29 +289,30 @@ export const StopScanRequest$outboundSchema: z.ZodType< z.ZodTypeDef, StopScanRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), deviceId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/stoptask.ts b/src/sdk/models/operations/stoptask.ts index f383c17c..bc8196d1 100644 --- a/src/sdk/models/operations/stoptask.ts +++ b/src/sdk/models/operations/stoptask.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type StopTaskGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -80,46 +85,50 @@ export enum StopTaskTask { } export type StopTaskRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The task name */ @@ -147,43 +156,45 @@ export const StopTaskGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StopTaskGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -192,28 +203,29 @@ export const StopTaskGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, StopTaskGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -271,44 +283,46 @@ export const StopTaskRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), task: StopTaskTask$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type StopTaskRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; task: string; }; @@ -318,29 +332,30 @@ export const StopTaskRequest$outboundSchema: z.ZodType< z.ZodTypeDef, StopTaskRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), task: StopTaskTask$outboundSchema, }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/terminatesession.ts b/src/sdk/models/operations/terminatesession.ts index b7acb59e..0a4542c3 100644 --- a/src/sdk/models/operations/terminatesession.ts +++ b/src/sdk/models/operations/terminatesession.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type TerminateSessionGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type TerminateSessionRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The session id (found in the `Session` element in [/status/sessions](#tag/Status/operation/statusGetSlash)) */ @@ -123,43 +132,45 @@ export const TerminateSessionGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TerminateSessionGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -168,28 +179,29 @@ export const TerminateSessionGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, TerminateSessionGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -230,45 +242,47 @@ export const TerminateSessionRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sessionId: z.string(), reason: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TerminateSessionRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sessionId: string; reason?: string | undefined; }; @@ -279,30 +293,31 @@ export const TerminateSessionRequest$outboundSchema: z.ZodType< z.ZodTypeDef, TerminateSessionRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sessionId: z.string(), reason: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/transcodeimage.ts b/src/sdk/models/operations/transcodeimage.ts index 7c637a97..5f1137fa 100644 --- a/src/sdk/models/operations/transcodeimage.ts +++ b/src/sdk/models/operations/transcodeimage.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type TranscodeImageGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -80,46 +84,50 @@ export enum ChromaSubsampling { } export type TranscodeImageRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The source URL for the image to transcode. Note, if this URL requires a token such as `X-Plex-Token`, it should be given as a query parameter to this url. */ @@ -220,43 +228,45 @@ export const TranscodeImageGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TranscodeImageGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -265,28 +275,29 @@ export const TranscodeImageGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, TranscodeImageGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -367,16 +378,17 @@ export const TranscodeImageRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), url: z.string().optional(), format: Format$inboundSchema.optional(), width: z.number().int().optional(), @@ -393,31 +405,32 @@ export const TranscodeImageRequest$inboundSchema: z.ZodType< blendColor: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TranscodeImageRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; url?: string | undefined; format?: string | undefined; width?: number | undefined; @@ -440,16 +453,17 @@ export const TranscodeImageRequest$outboundSchema: z.ZodType< z.ZodTypeDef, TranscodeImageRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), url: z.string().optional(), format: Format$outboundSchema.optional(), width: z.number().int().optional(), @@ -466,16 +480,16 @@ export const TranscodeImageRequest$outboundSchema: z.ZodType< blendColor: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/transcodesubtitles.ts b/src/sdk/models/operations/transcodesubtitles.ts index 06a13efb..4782c088 100644 --- a/src/sdk/models/operations/transcodesubtitles.ts +++ b/src/sdk/models/operations/transcodesubtitles.ts @@ -10,46 +10,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type TranscodeSubtitlesGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -88,46 +92,50 @@ export enum TranscodeSubtitlesSubtitles { } export type TranscodeSubtitlesRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Type of transcode media */ @@ -281,43 +289,45 @@ export const TranscodeSubtitlesGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TranscodeSubtitlesGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -326,28 +336,29 @@ export const TranscodeSubtitlesGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, TranscodeSubtitlesGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -451,16 +462,17 @@ export const TranscodeSubtitlesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), transcodeType: shared.TranscodeType$inboundSchema, transcodeSessionId: z.string().optional(), advancedSubtitles: shared.AdvancedSubtitles$inboundSchema.optional(), @@ -494,16 +506,16 @@ export const TranscodeSubtitlesRequest$inboundSchema: z.ZodType< "X-Plex-Session-Identifier": z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", "X-Plex-Client-Profile-Extra": "xPlexClientProfileExtra", "X-Plex-Client-Profile-Name": "xPlexClientProfileName", "X-Plex-Session-Identifier": "xPlexSessionIdentifier", @@ -512,16 +524,17 @@ export const TranscodeSubtitlesRequest$inboundSchema: z.ZodType< /** @internal */ export type TranscodeSubtitlesRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; transcodeType: string; transcodeSessionId?: string | undefined; advancedSubtitles?: string | undefined; @@ -561,16 +574,17 @@ export const TranscodeSubtitlesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, TranscodeSubtitlesRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), transcodeType: shared.TranscodeType$outboundSchema, transcodeSessionId: z.string().optional(), advancedSubtitles: shared.AdvancedSubtitles$outboundSchema.optional(), @@ -604,16 +618,16 @@ export const TranscodeSubtitlesRequest$outboundSchema: z.ZodType< xPlexSessionIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", xPlexClientProfileExtra: "X-Plex-Client-Profile-Extra", xPlexClientProfileName: "X-Plex-Client-Profile-Name", xPlexSessionIdentifier: "X-Plex-Session-Identifier", diff --git a/src/sdk/models/operations/triggerfallback.ts b/src/sdk/models/operations/triggerfallback.ts index 9221de44..05398128 100644 --- a/src/sdk/models/operations/triggerfallback.ts +++ b/src/sdk/models/operations/triggerfallback.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type TriggerFallbackGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type TriggerFallbackRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * Type of transcode media */ @@ -124,43 +132,45 @@ export const TriggerFallbackGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TriggerFallbackGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const TriggerFallbackGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, TriggerFallbackGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,45 +242,47 @@ export const TriggerFallbackRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), transcodeType: shared.TranscodeType$inboundSchema, transcodeSessionId: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TriggerFallbackRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; transcodeType: string; transcodeSessionId?: string | undefined; }; @@ -280,30 +293,31 @@ export const TriggerFallbackRequest$outboundSchema: z.ZodType< z.ZodTypeDef, TriggerFallbackRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), transcodeType: shared.TranscodeType$outboundSchema, transcodeSessionId: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/tunechannel.ts b/src/sdk/models/operations/tunechannel.ts index 069afb14..84131f7d 100644 --- a/src/sdk/models/operations/tunechannel.ts +++ b/src/sdk/models/operations/tunechannel.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type TuneChannelGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type TuneChannelRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the DVR. */ @@ -129,43 +137,45 @@ export const TuneChannelGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TuneChannelGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -174,28 +184,29 @@ export const TuneChannelGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, TuneChannelGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -236,45 +247,47 @@ export const TuneChannelRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), dvrId: z.number().int(), channel: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type TuneChannelRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; dvrId: number; channel: string; }; @@ -285,30 +298,31 @@ export const TuneChannelRequest$outboundSchema: z.ZodType< z.ZodTypeDef, TuneChannelRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), dvrId: z.number().int(), channel: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/unmatch.ts b/src/sdk/models/operations/unmatch.ts index 77c2a387..3af0606c 100644 --- a/src/sdk/models/operations/unmatch.ts +++ b/src/sdk/models/operations/unmatch.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type UnmatchGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type UnmatchRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; }; @@ -116,43 +125,45 @@ export const UnmatchGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UnmatchGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -161,28 +172,29 @@ export const UnmatchGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, UnmatchGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -219,44 +231,46 @@ export const UnmatchRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UnmatchRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; }; @@ -266,29 +280,30 @@ export const UnmatchRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UnmatchRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/unscrobble.ts b/src/sdk/models/operations/unscrobble.ts index 66e6ab67..a9a5f4fe 100644 --- a/src/sdk/models/operations/unscrobble.ts +++ b/src/sdk/models/operations/unscrobble.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type UnscrobbleGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type UnscrobbleRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The identifier of the media provider containing the media to rate. Typically `com.plexapp.plugins.library` */ @@ -127,43 +136,45 @@ export const UnscrobbleGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UnscrobbleGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -172,28 +183,29 @@ export const UnscrobbleGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, UnscrobbleGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -234,46 +246,48 @@ export const UnscrobbleRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), identifier: z.string(), key: z.string().optional(), uri: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UnscrobbleRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; identifier: string; key?: string | undefined; uri?: string | undefined; @@ -285,31 +299,32 @@ export const UnscrobbleRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UnscrobbleRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), identifier: z.string(), key: z.string().optional(), uri: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/unshuffle.ts b/src/sdk/models/operations/unshuffle.ts index 025100cf..a4d2f46e 100644 --- a/src/sdk/models/operations/unshuffle.ts +++ b/src/sdk/models/operations/unshuffle.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type UnshuffleGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type UnshuffleRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the play queue. */ @@ -126,43 +134,45 @@ export const UnshuffleGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UnshuffleGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -171,28 +181,29 @@ export const UnshuffleGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, UnshuffleGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -233,44 +244,46 @@ export const UnshuffleRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playQueueId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UnshuffleRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playQueueId: number; }; @@ -280,29 +293,30 @@ export const UnshuffleRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UnshuffleRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playQueueId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/updatehubvisibility.ts b/src/sdk/models/operations/updatehubvisibility.ts index 28c6f028..342d6c9c 100644 --- a/src/sdk/models/operations/updatehubvisibility.ts +++ b/src/sdk/models/operations/updatehubvisibility.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type UpdateHubVisibilityGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type UpdateHubVisibilityRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The section ID for the hubs to change */ @@ -136,43 +144,45 @@ export const UpdateHubVisibilityGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UpdateHubVisibilityGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -181,28 +191,29 @@ export const UpdateHubVisibilityGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateHubVisibilityGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -243,16 +254,17 @@ export const UpdateHubVisibilityRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.number().int(), identifier: z.string(), promotedToRecommended: shared.BoolInt$inboundSchema.optional(), @@ -260,31 +272,32 @@ export const UpdateHubVisibilityRequest$inboundSchema: z.ZodType< promotedToSharedHome: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UpdateHubVisibilityRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: number; identifier: string; promotedToRecommended?: number | undefined; @@ -298,16 +311,17 @@ export const UpdateHubVisibilityRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateHubVisibilityRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.number().int(), identifier: z.string(), promotedToRecommended: shared.BoolInt$outboundSchema.optional(), @@ -315,16 +329,16 @@ export const UpdateHubVisibilityRequest$outboundSchema: z.ZodType< promotedToSharedHome: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/updateitemartwork.ts b/src/sdk/models/operations/updateitemartwork.ts index c776d59e..838c529d 100644 --- a/src/sdk/models/operations/updateitemartwork.ts +++ b/src/sdk/models/operations/updateitemartwork.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type UpdateItemArtworkGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export enum UpdateItemArtworkElement { @@ -61,46 +66,50 @@ export enum UpdateItemArtworkElement { } export type UpdateItemArtworkRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; ids: string; element: UpdateItemArtworkElement; /** @@ -130,43 +139,45 @@ export const UpdateItemArtworkGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UpdateItemArtworkGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -175,28 +186,29 @@ export const UpdateItemArtworkGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateItemArtworkGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -258,46 +270,48 @@ export const UpdateItemArtworkRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), ids: z.string(), element: UpdateItemArtworkElement$inboundSchema, url: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UpdateItemArtworkRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; ids: string; element: string; url?: string | undefined; @@ -309,31 +323,32 @@ export const UpdateItemArtworkRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateItemArtworkRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), ids: z.string(), element: UpdateItemArtworkElement$outboundSchema, url: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/updateitems.ts b/src/sdk/models/operations/updateitems.ts index 8179291e..3552f268 100644 --- a/src/sdk/models/operations/updateitems.ts +++ b/src/sdk/models/operations/updateitems.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type UpdateItemsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type UpdateItemsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The id of the section */ @@ -169,43 +177,45 @@ export const UpdateItemsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UpdateItemsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -214,28 +224,29 @@ export const UpdateItemsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateItemsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -276,16 +287,17 @@ export const UpdateItemsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), sectionId: z.string(), type: z.string().optional(), filters: z.string().optional(), @@ -302,16 +314,16 @@ export const UpdateItemsRequest$inboundSchema: z.ZodType< "tagtype[].tag": z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", "field.value": "fieldValue", "field.locked": "fieldLocked", "title.value": "titleValue", @@ -328,16 +340,17 @@ export const UpdateItemsRequest$inboundSchema: z.ZodType< /** @internal */ export type UpdateItemsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; sectionId: string; type?: string | undefined; filters?: string | undefined; @@ -360,16 +373,17 @@ export const UpdateItemsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateItemsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), sectionId: z.string(), type: z.string().optional(), filters: z.string().optional(), @@ -386,16 +400,16 @@ export const UpdateItemsRequest$outboundSchema: z.ZodType< tagtypeTag: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", fieldValue: "field.value", fieldLocked: "field.locked", titleValue: "title.value", diff --git a/src/sdk/models/operations/updateplaylist.ts b/src/sdk/models/operations/updateplaylist.ts index 49ce14c0..382f2bbc 100644 --- a/src/sdk/models/operations/updateplaylist.ts +++ b/src/sdk/models/operations/updateplaylist.ts @@ -7,91 +7,100 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type UpdatePlaylistGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type UpdatePlaylistRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The ID of the playlist */ @@ -119,43 +128,45 @@ export const UpdatePlaylistGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UpdatePlaylistGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -164,28 +175,29 @@ export const UpdatePlaylistGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, UpdatePlaylistGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -226,44 +238,46 @@ export const UpdatePlaylistRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UpdatePlaylistRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; playlistId: number; }; @@ -273,29 +287,30 @@ export const UpdatePlaylistRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UpdatePlaylistRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), playlistId: z.number().int(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/uploadplaylist.ts b/src/sdk/models/operations/uploadplaylist.ts index 4239f9ee..23e2514a 100644 --- a/src/sdk/models/operations/uploadplaylist.ts +++ b/src/sdk/models/operations/uploadplaylist.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type UploadPlaylistGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type UploadPlaylistRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * 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. */ @@ -124,43 +132,45 @@ export const UploadPlaylistGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UploadPlaylistGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -169,28 +179,29 @@ export const UploadPlaylistGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, UploadPlaylistGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -231,45 +242,47 @@ export const UploadPlaylistRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), path: z.string().optional(), force: shared.BoolInt$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type UploadPlaylistRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; path?: string | undefined; force?: number | undefined; }; @@ -280,30 +293,31 @@ export const UploadPlaylistRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UploadPlaylistRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), path: z.string().optional(), force: shared.BoolInt$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/voicesearchhubs.ts b/src/sdk/models/operations/voicesearchhubs.ts index 330a7606..7b710252 100644 --- a/src/sdk/models/operations/voicesearchhubs.ts +++ b/src/sdk/models/operations/voicesearchhubs.ts @@ -10,89 +10,97 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; export type VoiceSearchHubsGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; export type VoiceSearchHubsRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * The query term */ @@ -165,43 +173,45 @@ export const VoiceSearchHubsGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type VoiceSearchHubsGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -210,28 +220,29 @@ export const VoiceSearchHubsGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, VoiceSearchHubsGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -272,46 +283,48 @@ export const VoiceSearchHubsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), query: z.string(), type: z.number().int().optional(), limit: z.number().int().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type VoiceSearchHubsRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; query: string; type?: number | undefined; limit?: number | undefined; @@ -323,31 +336,32 @@ export const VoiceSearchHubsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, VoiceSearchHubsRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), query: z.string(), type: z.number().int().optional(), limit: z.number().int().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/operations/writemessage.ts b/src/sdk/models/operations/writemessage.ts index f3f5887c..92b9a633 100644 --- a/src/sdk/models/operations/writemessage.ts +++ b/src/sdk/models/operations/writemessage.ts @@ -7,48 +7,53 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as shared from "../shared/index.js"; export type WriteMessageGlobals = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; }; /** @@ -70,46 +75,50 @@ export enum WriteMessageLevel { } export type WriteMessageRequest = { + /** + * Indicates the client accepts the indicated media types + */ + accepts?: shared.Accepts | undefined; /** * An opaque identifier unique to the client */ - xPlexClientIdentifier?: string | undefined; + clientIdentifier?: string | undefined; /** * The name of the client product */ - xPlexProduct?: string | undefined; + product?: string | undefined; /** * The version of the client application */ - xPlexVersion?: string | undefined; + version?: string | undefined; /** * The platform of the client */ - xPlexPlatform?: string | undefined; + platform?: string | undefined; /** * The version of the platform */ - xPlexPlatformVersion?: string | undefined; + platformVersion?: string | undefined; /** * A relatively friendly name for the client device */ - xPlexDevice?: string | undefined; + device?: string | undefined; /** * A potentially less friendly identifier for the device model */ - xPlexModel?: string | undefined; + model?: string | undefined; /** * The device vendor */ - xPlexDeviceVendor?: string | undefined; + deviceVendor?: string | undefined; /** * A friendly name for the client */ - xPlexDeviceName?: string | undefined; + deviceName?: string | undefined; /** * The marketplace on which the client application is distributed */ - xPlexMarketplace?: string | undefined; + marketplace?: string | undefined; /** * An integer log level to write to the PMS log with. * @@ -152,43 +161,45 @@ export const WriteMessageGlobals$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type WriteMessageGlobals$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; }; /** @internal */ @@ -197,28 +208,29 @@ export const WriteMessageGlobals$outboundSchema: z.ZodType< z.ZodTypeDef, WriteMessageGlobals > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); @@ -280,46 +292,48 @@ export const WriteMessageRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Plex-Client-Identifier": z.string().optional(), - "X-Plex-Product": z.string().optional(), - "X-Plex-Version": z.string().optional(), - "X-Plex-Platform": z.string().optional(), - "X-Plex-Platform-Version": z.string().optional(), - "X-Plex-Device": z.string().optional(), - "X-Plex-Model": z.string().optional(), - "X-Plex-Device-Vendor": z.string().optional(), - "X-Plex-Device-Name": z.string().optional(), - "X-Plex-Marketplace": z.string().optional(), + accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml), + "Client-Identifier": z.string().optional(), + Product: z.string().optional(), + Version: z.string().optional(), + Platform: z.string().optional(), + "Platform-Version": z.string().optional(), + Device: z.string().optional(), + Model: z.string().optional(), + "Device-Vendor": z.string().optional(), + "Device-Name": z.string().optional(), + Marketplace: z.string().optional(), level: WriteMessageLevel$inboundSchema.optional(), message: z.string().optional(), source: z.string().optional(), }).transform((v) => { return remap$(v, { - "X-Plex-Client-Identifier": "xPlexClientIdentifier", - "X-Plex-Product": "xPlexProduct", - "X-Plex-Version": "xPlexVersion", - "X-Plex-Platform": "xPlexPlatform", - "X-Plex-Platform-Version": "xPlexPlatformVersion", - "X-Plex-Device": "xPlexDevice", - "X-Plex-Model": "xPlexModel", - "X-Plex-Device-Vendor": "xPlexDeviceVendor", - "X-Plex-Device-Name": "xPlexDeviceName", - "X-Plex-Marketplace": "xPlexMarketplace", + "Client-Identifier": "clientIdentifier", + "Product": "product", + "Version": "version", + "Platform": "platform", + "Platform-Version": "platformVersion", + "Device": "device", + "Model": "model", + "Device-Vendor": "deviceVendor", + "Device-Name": "deviceName", + "Marketplace": "marketplace", }); }); /** @internal */ export type WriteMessageRequest$Outbound = { - "X-Plex-Client-Identifier"?: string | undefined; - "X-Plex-Product"?: string | undefined; - "X-Plex-Version"?: string | undefined; - "X-Plex-Platform"?: string | undefined; - "X-Plex-Platform-Version"?: string | undefined; - "X-Plex-Device"?: string | undefined; - "X-Plex-Model"?: string | undefined; - "X-Plex-Device-Vendor"?: string | undefined; - "X-Plex-Device-Name"?: string | undefined; - "X-Plex-Marketplace"?: string | undefined; + accepts: string; + "Client-Identifier"?: string | undefined; + Product?: string | undefined; + Version?: string | undefined; + Platform?: string | undefined; + "Platform-Version"?: string | undefined; + Device?: string | undefined; + Model?: string | undefined; + "Device-Vendor"?: string | undefined; + "Device-Name"?: string | undefined; + Marketplace?: string | undefined; level?: number | undefined; message?: string | undefined; source?: string | undefined; @@ -331,31 +345,32 @@ export const WriteMessageRequest$outboundSchema: z.ZodType< z.ZodTypeDef, WriteMessageRequest > = z.object({ - xPlexClientIdentifier: z.string().optional(), - xPlexProduct: z.string().optional(), - xPlexVersion: z.string().optional(), - xPlexPlatform: z.string().optional(), - xPlexPlatformVersion: z.string().optional(), - xPlexDevice: z.string().optional(), - xPlexModel: z.string().optional(), - xPlexDeviceVendor: z.string().optional(), - xPlexDeviceName: z.string().optional(), - xPlexMarketplace: z.string().optional(), + accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml), + clientIdentifier: z.string().optional(), + product: z.string().optional(), + version: z.string().optional(), + platform: z.string().optional(), + platformVersion: z.string().optional(), + device: z.string().optional(), + model: z.string().optional(), + deviceVendor: z.string().optional(), + deviceName: z.string().optional(), + marketplace: z.string().optional(), level: WriteMessageLevel$outboundSchema.optional(), message: z.string().optional(), source: z.string().optional(), }).transform((v) => { return remap$(v, { - xPlexClientIdentifier: "X-Plex-Client-Identifier", - xPlexProduct: "X-Plex-Product", - xPlexVersion: "X-Plex-Version", - xPlexPlatform: "X-Plex-Platform", - xPlexPlatformVersion: "X-Plex-Platform-Version", - xPlexDevice: "X-Plex-Device", - xPlexModel: "X-Plex-Model", - xPlexDeviceVendor: "X-Plex-Device-Vendor", - xPlexDeviceName: "X-Plex-Device-Name", - xPlexMarketplace: "X-Plex-Marketplace", + clientIdentifier: "Client-Identifier", + product: "Product", + version: "Version", + platform: "Platform", + platformVersion: "Platform-Version", + device: "Device", + model: "Model", + deviceVendor: "Device-Vendor", + deviceName: "Device-Name", + marketplace: "Marketplace", }); }); diff --git a/src/sdk/models/shared/accepts.ts b/src/sdk/models/shared/accepts.ts new file mode 100644 index 00000000..dff54fd3 --- /dev/null +++ b/src/sdk/models/shared/accepts.ts @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; + +export enum Accepts { + ApplicationJson = "application/json", + ApplicationXml = "application/xml", +} + +/** @internal */ +export const Accepts$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(Accepts); + +/** @internal */ +export const Accepts$outboundSchema: z.ZodNativeEnum = + Accepts$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Accepts$ { + /** @deprecated use `Accepts$inboundSchema` instead. */ + export const inboundSchema = Accepts$inboundSchema; + /** @deprecated use `Accepts$outboundSchema` instead. */ + export const outboundSchema = Accepts$outboundSchema; +} diff --git a/src/sdk/models/shared/index.ts b/src/sdk/models/shared/index.ts index e5a3be5d..7f92fa67 100644 --- a/src/sdk/models/shared/index.ts +++ b/src/sdk/models/shared/index.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +export * from "./accepts.js"; export * from "./advancedsubtitles.js"; export * from "./boolint.js"; export * from "./channel.js"; diff --git a/src/sdk/models/shared/security.ts b/src/sdk/models/shared/security.ts index 4a74f1bc..e1522bf6 100644 --- a/src/sdk/models/shared/security.ts +++ b/src/sdk/models/shared/security.ts @@ -3,13 +3,12 @@ */ import * as z from "zod"; -import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Security = { - apiKey?: string | undefined; + token?: string | undefined; }; /** @internal */ @@ -18,16 +17,12 @@ export const Security$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - api_key: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "api_key": "apiKey", - }); + token: z.string().optional(), }); /** @internal */ export type Security$Outbound = { - api_key?: string | undefined; + token?: string | undefined; }; /** @internal */ @@ -36,11 +31,7 @@ export const Security$outboundSchema: z.ZodType< z.ZodTypeDef, Security > = z.object({ - apiKey: z.string().optional(), -}).transform((v) => { - return remap$(v, { - apiKey: "api_key", - }); + token: z.string().optional(), }); /**